How can I specify a maximum or minimum number with AJV for JSON Type Definition (JTD)?
I don't see anywhere in the docs how to specify.
How can I specify a maximum or minimum number with AJV for JSON Type Definition (JTD)?
I don't see anywhere in the docs how to specify.
You need to look for keyword for numbers in docs https://ajv.js.org/json-schema.html#keywords-for-numbers
{type: "number", maximum: 5}
or
{type: "number", exclusiveMinimum: 5}