exclusiveMaximum : Boolean

exclusiveMaximum

Boolean

Validation succeeds if the numeric instance is less than the given number.

Value This keyword must be set to a boolean value
Kind Assertion
Applies To Number
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.12
Metaschema http://json-schema.org/draft-03/schema#
Official Tests
Default false
Annotation None
Affected By None
Affects
Also See

Examples

Schema with 'exclusiveMaximum' keyword Schema
{
  "$schema": "http://json-schema.org/draft-03/schema#",
  "type": "number",
  "maximum": 3.0,
  "exclusiveMaximum": true
}
Valid A numeric instance less than the maximum with the exclusiveMaximum keyword defined is valid Instance
2.2
Invalid A numeric instance greater than or equal to the maximum with the exclusiveMaximum keyword defined is invalid Instance
3.0