Skip to content

Bug: Integer & Number exclusive restrictions not working #473

Description

@bhargavrpatel

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
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions