exclusiveMinimum : Boolean
exclusiveMinimum
BooleanWhen minimum is present and this keyword is set to true, the numeric instance must be greater than the value in minimum.
| Value |
This keyword must be set to a boolean value
Hint: Use the jsonschema metaschema and jsonschema lint commands to catch keywords set to invalid values
|
|---|---|
| Kind | Assertion |
| Applies To | Number |
| Base Dialect | Draft 3 |
| Changed In | Draft 6 |
| Introduced In | Draft 3 |
| Vocabulary | Core |
| Specification | https://json-schema.org/draft-03/draft-zyp-json-schema-03.pdf#5.11 |
| Metaschema | http://json-schema.org/draft-03/schema# |
| Official Tests | |
| Default |
false
|
| Annotation | None |
| Affected By | None |
| Affects | |
| Also See |
|
Examples
Schema with 'exclusiveMinimum' keyword
Schema
{
"$schema": "http://json-schema.org/draft-03/schema#",
"type": "number",
"minimum": 1.1,
"exclusiveMinimum": true
}
Valid
A numeric instance greater than the minimum with the exclusiveMinimum keyword defined is valid
Instance
1.2
Invalid
A numeric instance less than or equal to the minimum with the exclusiveMinimum keyword defined is invalid
Instance
1.1