-
-
Notifications
You must be signed in to change notification settings - Fork 328
Open
Labels
proposalInitial discussion of a new idea. A project will be created once a proposal document is created.Initial discussion of a new idea. A project will be created once a proposal document is created.
Description
We often see use cases, where numeric values should have exactly n
digits after decimal point. Example currency value should have 2 decimal places only:
{"price": 17.23}
Suggestion is to include precision
and scale
keywords in the spec. Precision is defined as number of digits in a number and scale is number of digits after decimal point.
I understand that scale can be achieved using multipleOf keyword, i.e. "multipleOf" : 0.01
ensures scale value 2, and "maximum": 999999
ensures precision value 6.
However precision
and scale
keywords should be meaningful and much cleaner.
ralfhandl
Metadata
Metadata
Assignees
Labels
proposalInitial discussion of a new idea. A project will be created once a proposal document is created.Initial discussion of a new idea. A project will be created once a proposal document is created.