We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you create a param with a default value:
param myparam string = 'my default'
and then later you need to add min/max, you shouldn't have to rewrite the default portion in order to do it:
param storageAccountName string { default: 'my default' minLength: 3 maxLength: 24 }
Why not just allow this?
param storageAccountName string = 'my default' { minLength: 3 maxLength: 24 }
The text was updated successfully, but these errors were encountered:
We are likely going to switch parameter modifiers to a decorator syntax at which point you should be able to do this. Take a look at #64
Sorry, something went wrong.
The new decorator syntax has been merged, so you can try the nightly, but it has not yet been released. The new syntax is:
@minLength(3) @maxLength(24) param storageAccountName string = 'my default'
No branches or pull requests
If you create a param with a default value:
and then later you need to add min/max, you shouldn't have to rewrite the default portion in order to do it:
Why not just allow this?
The text was updated successfully, but these errors were encountered: