You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What results did you expect?
If maxValue is -1, minValue can be anything greater than -1. For any other value of maxValue, maxValue has to be greater than minValue. If I remove the if/then/else from my schema, everything validates correctly. Not sure if I am doing something silly with my schema or if this is a bug.
Are you going to resolve the issue?
Unfortunately, not sure that I can.
The text was updated successfully, but these errors were encountered:
Hi @tet-lenovo, thanks for bringing this to our attention. I am having some trouble replicating the issue. Could you provide a runkit example, you can use this template if it helps.
What version of Ajv are you using? Does the issue happen if you use the latest version?
8.12.0
Ajv options object
JSON Schema
Sample data
Your code
Validation result, data AFTER validation, error messages
What results did you expect?
If maxValue is -1, minValue can be anything greater than -1. For any other value of maxValue, maxValue has to be greater than minValue. If I remove the if/then/else from my schema, everything validates correctly. Not sure if I am doing something silly with my schema or if this is a bug.
Are you going to resolve the issue?
Unfortunately, not sure that I can.
The text was updated successfully, but these errors were encountered: