I have a JSON schema with 2 properties, minimumTolerance and maximumTolerance. I need to make sure that the value of maximumTolerance is not smaller than minimumTolerance &a
If you are using AJV You can do this using $data and relative JSON pointers. Example:
$data
low: { type: 'integer', maximum: { $data: '1/high', }, exclusiveMaximum: true, }, high: { type: 'integer', minimum: { $data: '1/low', }, exclusiveMinimum: true, },