-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[BUG][Kotlin] Generated Serializer for ApiClient does not support BigDecimal #7196
Comments
@nilskuhn thanks for reporting the issue. Do you mind filing a PR with the suggested fix? |
Yes, I will try to find the time. |
Possible workaroundSet the |
Hi, I added BigDecimal/BigInteger in my fork kuFEAR@05bd4e1, I'll send it later to parent repo after merge another one pr |
@kuFEAR did you ever send in a PR for this? |
this allows the kotlin client generator to support BigDecimal values Fixes OpenAPITools#7196
Description
Generating a Kotlin client for an API that uses BigDecimal in the model, the generated ApiClient doesn't work because the generated Moshi serializer does not have a type adapter for BigDecimal. Unfortunately, there is no way to inject the type adapter yourself.
openapi-generator version
4.3.1
Steps to reproduce
Any API with BigDecimal should demonstrate the problem. Generate Kotlin API and try to send message. I get exception:
Suggest a fix
Add BigDecimal adapter here: com.kn.containerDashboard.backend.client.rgs.infrastructure.Serializer
The text was updated successfully, but these errors were encountered: