-
Notifications
You must be signed in to change notification settings - Fork 280
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
Valid number with step(scale) #476
Comments
ajv supports User-defined keywords:https://ajv.js.org/guide/user-keywords.html |
Hello, this library doesn't support custom keywords, bur maybe you can solve the problem with a custom format ? |
If the step and minimum are equal for different properties, custom format is applicable. |
That isn't doable with this library, unfortunately. |
Condition: there are parameters(minimum, maximum, step(scale)) to valid the subject.
Validate formula: (subject - minimum)%step == 0
Is there any extension for NumberSchema to implement the valid?
Or other way to valid?
The text was updated successfully, but these errors were encountered: