json-schema
json-schema copied to clipboard
Bug: Integer & Number exclusive restrictions not working
Context I am not seeing a failure on exclusive minimum and exclusive maximum restrictions.
How to reproduce
schema = {
"properties" => {
"rank" => {
"type" => "integer",
"description" => "Rank of the object",
"exclusiveMinimum" => 1,
}
},
"required": ["rank"]
}
JSON::Validator.validate!(schema, {"rank" => 1}, strict: true)
# => true
Expectation
This should have failed per other schema validators