-
-
Notifications
You must be signed in to change notification settings - Fork 762
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 for money (decimal) #376
Comments
@worldmind please take a look at http://connexion.readthedocs.io/en/latest/cookbook.html#custom-type-format . Let me know if it does not help. |
If i understood right is only part of solution - it is only about validation, but user shoud be manually convert goted string to decimal type for using it. |
I think if we would do this in Connexion we would need to carry out all the responsibility to handle precision, etc. Not sure how we would tackle this issue. |
Also OpenAPI spec does not provide the |
Due to no support for decimals in the OpenAPI spec, I think this issue should be closed. You can support decimal in your API, but you need to implement yourself the conversion. |
As I understood they think that frameworks must create decimal values from |
Now connexion cast number to float, but for money parameters needed decimal type
The text was updated successfully, but these errors were encountered: