Skip to content

is 1.0 an "integer"? #79

Closed
Closed
@awwright

Description

@awwright

Right now, the JSON Schema Test Suite seems to test for the assertion that 1.0 does not validate against "type":"integer"

Right now, draft-04 says:

both are numbers, and have the same mathematical value; or

meaning that even though 1.0 is equal to 1, there still exists a keyword where one will validate and the other will not.

Should this be correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions