Is there a way to Regex-check a parameter within my custom `dotnet new` template?
I have a custom dotnet new
template that kickstarts an API project with some orchestration. It works well, however I needed to add a rule.
There is a parameter within template.json
"aks":{ "type": "parameter", "datatype": "string", "replaces": "blipapitemplate", "isRequired": true, "fileRename": "blipapitemplate" }
that I need it to have a certain pattern: lower-kebab-case
. Is there a way to enforce it? Like fail to create/throw an exception if the value given does not match a regex or something
I tried reading the reference and googling but no luck.