How are you representing price amount in your APIs? I think most popular choices are string and number (in Python, unfortunately, it is converted to float by default - connexion framework).
type: number, format: decimal is not supported yet I believe. What is the best practice for this?
In case of number, I guess there could be added some converter to convert number to decimal right after validation?
Strings I think are easier for handling, would be converted to decimal inside handler. But then there is missing validation -> price is a number, not a string obviously. (solved by custom validation?)
I’ve seen this related issue in OpenAPI. Does json:api have a suggestion here?