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
Description
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
Labels
No labels