Minimum and exclusiveminimum - sgpinkus/json-schema GitHub Wiki
THIS WIKI IS OBSOLETE. PLEASE SEE THE NEW JSON-SCHEMA-ORG/JSON-SCHEMA-SPEC REPOSITORY.
A numeric instance is valid with regards to minimum if it is greater than, or equal to, this keyword's value. If exclusiveMinimum is also present and its value is boolean value true, then the numeric instance must be strictly greater than the value in minimum.
The value of minimum MUST be a number. The value of exclusiveMinimum MUST be a boolean.
If exclusiveMinimum is present, then minimum MUST be present.
If minimum is present but not exclusiveMinimum, it MAY be considered that the exclusiveMinimum keyword value is boolean false.
Against this schema:
{
"minimum": 4,
"exclusiveMinimum": true
}
the following instances are valid:
- 4.00000000000000000000000000000000000000000000000000000000000000000000000000000000000001;
- 5.
the following instances are invalid:
- 4;
- 3.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
- -642.14.