asyncapi/java-spring-template

Support for java.math.BigDecimal

Closed this issue ยท 4 comments

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.

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

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

Hello @ArturSydor
Your feedback regarding PR #324 is welcome

๐ŸŽ‰ This issue has been resolved in version 1.2.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€