Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Integers vs. integer-valued floats #27

Closed
@geraintluff

Description

@geraintluff

@fge said in #25:

Also, consider validating:

1.0

against:

{ "type": "integer" }

Do you really expect that to succeed? I don't ;)

I disagree, because for me, 1.0 is an integer. I would absolutely expect that to validate.

I believe that {"type: "integer"} is completely equivalent to {"type": "number", "divisibleBy": 1}. It was at one point removed because it was redundant, and re-introduced because it was concise and intuitive.

Thoughts from anyone else?

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