Skip to content
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

Support for java.math.BigDecimal #275

Closed
ArturSydor opened this issue Feb 1, 2023 · 4 comments · Fixed by #324
Closed

Support for java.math.BigDecimal #275

ArturSydor opened this issue Feb 1, 2023 · 4 comments · Fixed by #324
Labels
enhancement New feature or request released

Comments

@ArturSydor
Copy link

Reason/Context

In java applications for working with decimal numbers we usually use java.math.BigDecimal, because double is not so accurate, but current generator version is not supporting this type. As workaround we can use String, but this requires additional conversation on java side. Would be very helpful to have BigDecimal as part of this generator.

@ArturSydor ArturSydor added the enhancement New feature or request label Feb 1, 2023
@Tenischev
Copy link
Member

Hello @ArturSydor
for which type or format of parameter in AsyncApi you suggest to use BigDecimal?

@ArturSydor
Copy link
Author

Hello @Tenischev
i would suggest to use
type: string
format: decimal

@Tenischev
Copy link
Member

Hello @ArturSydor
Your feedback regarding PR #324 is welcome

@asyncapi-bot
Copy link
Contributor

🎉 This issue has been resolved in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants