Skip to content

is 1.0 an "integer"? #132

Closed
Closed
@awwright

Description

@awwright

Right now, draft-04 says:

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

However, the test suite has this test: https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/develop/tests/draft4/optional/zeroTerminatedFloats.json

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? I don't see any language in draft-04 for why this should be the case. I suggest remove this test, or flip the test result to "valid".

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA non-bug or non-feature request (that typically should be redirected to another medium).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions