-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type integer confusing? #272
Comments
@Weching "integer" was accidentally left out of that list in draft-wright-jsonschema-00. This is fixed in the next draft, which is currently in final review and should be published in the next week or so. You should use "type": "integer" as if it were in the list of defined types. It's omission was just an error. |
Can we fix this typo? I'm just getting started with json schema and was very confused why everything but the latest official docs reference an https://json-schema.org/latest/json-schema-core.html#rfc.section.4.2.1 Edit: Actually, after reading this bit I think I may be more confused now:
|
@yellottyellott what that means is that it's fine that the You will see in the definition of the |
Ah, thanks @handrews. The latter link is what I was looking for. |
In the spec, 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?
The text was updated successfully, but these errors were encountered: