I have two parameters, say number_1
and number_2
. The value of number_2
should be greater than the value of number_1
. How can this be done in jsonschema?
This cannot be done with plain jsonschema. There is no greater than
or similar in the draft. Other constraints could be possible once you can have access to another value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With