4
votes

In the spec http://json-schema.org/latest/json-schema-core.html, it only list below types: null, boolean, string, number, object, array.

I know number includes integer, but can I define a "type":"integer" explicitly. I mean will this violate the spec?

1
There's an issue on the JSON Schema GitHub page asking exactly this... github.com/json-schema-org/json-schema-spec/issues/272Heretic Monkey

1 Answers