You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm producing a JSON schema for a service that needs to communicate the precision of BigDecimal numbers.
This allows client generators to pick the right data type (i.e. not pick a float but a decimal data type).
I'm producing a JSON schema for a service that needs to communicate the precision of BigDecimal numbers.
This allows client generators to pick the right data type (i.e. not pick a float but a decimal data type).
The
multipleOf
keyword is the right one for this, e.g. https://swagger.io/docs/specification/data-models/data-types/This is the kind of API spec I want to produce
I have not found any annotation that I can use right now to do this. Maybe making this similar to Bean Validation Constraints would be an option.
The text was updated successfully, but these errors were encountered: