11

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?

colidyre
  • 4,170
  • 12
  • 37
  • 53
Chandana
  • 111
  • 1
  • 4

1 Answers1

2

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.

colidyre
  • 4,170
  • 12
  • 37
  • 53