Regularly, there are bugs spotted on the length of a parameter or the maximum value of a numeric.
The goal is to reduce the probability to have this type of bug in the future.
Constraints on a parameter should be declared at the same time as the parameter and checked automatically by the WS engine.
Two new fields have been added in the web API :
- maximumLength : Maximum length of a string value (multi-values are not impacted)
- maximumValue : Maximum value for a numeric value
Here are some examples :
- api/metrics/create :