Parameters should be constrained as much as possible. Parameters provide additional elements such as minValue, MaxValue, minLength, MaxLength, and allowedValues and they should be used to validate the incoming parameter's value.
It is to be noted that these additional elements can only be used with parameters with int, string, and array data types. This means they cannot be used with objects data type.
The next code block shows examples of parameters using minValue, MaxValue, minLength, MaxLength, and allowedValues elements:
"parameters": {
"environmentName": {
"type": "string",
"allowedValues": [ "DEV", "TST", "PRD", "SIT", "PAT", "STG", "UAT" ]
},
"department": {
"type": "...