Looking to master JSON Schema for OpenAPI?

A 9+ hour course taught by a member of the JSON Schema Technical Steering Committee

exclusiveMaximum : Boolean

exclusiveMaximum

Boolean

When maximum is present and this keyword is set to true, the numeric instance must be less than the value in maximum.

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.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