-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
Support minValueInclusive #378
Comments
This was referenced Mar 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See documentation here. This rule should target all fields, checking whether the field has
minValueInclusive
.NOTE although the docs in the commit above state this rule should only apply to integers, it should in fact be applied to any JSON Number (updated in latest docs). This means it can be used to e.g. ensure that the decimal
price
is not negative. This rule will be useful for a number of fields, but theminValueInclusive
property only been added torepeatCount
in thedata-models
for now.Note
minValueInclusive
will need to be added as a property to this class so that it is accessible:data-model-validator/src/classes/field.js
Line 4 in 652c8d9
Rule as follows:
"minValueInclusive": 0
The text was updated successfully, but these errors were encountered: