-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Request: Integer sizes / ranges / max value #36
Comments
Wait, is If so, wouldn't it make more sense to do something like |
Not quite — it's a decimal but not a string. See here for information on numeric types in JSON schema. "Integers" are what you'd expect. "Numbers" are for any numeric type including floating point numbers. |
Right, that makes sense. My python instincts took over and yelled at me there's no way to accurately represent decimals without using strings. But of course JSON can :) |
Marking this as "future" as it's a good idea, but it's unclear when we would be able to action |
What is the blocker on taking action here? It seems like many items could easily have ranges added to them. |
Along the lines of my previous requests, it'd be good to have the ranges of values for various definitions. For example:
This could have something like min_value:0 and max_value:100.
Another example:
I don't know whether to use an int32 or an int64 to store this. Would be useful to know.
Finally, there are 41 instances of
type: number
and 554 instances oftype: integer
in the spec. What's the difference between the two?The text was updated successfully, but these errors were encountered: