-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[typescript-angular] property of number type incorrectly typed as BigDecimal #8855
Comments
I have not tested it yet, but I believe the fix for this would be to add in the file
where it says:
|
Until a fix is officially released, a quick workaround could be to create a
Obviously you have to add the file each time you generate the code... annoying but working. |
…en#8855 - fix BigDecimal typeMapping in typescript and python
refs swagger-api/swagger-codegen#9612, refs swagger-api/swagger-codegen#8855 - fix BigDecimal typeMapping in typescript and python
Same happened for golang server generation |
Description
When a schema as some properties of number type, they are typed as BigDecimal instead of number in the exported model
Swagger-codegen version
3.0.2
Swagger declaration file content or url
Command line used for generation
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3:3.0.2 generate -i /local/swagger.yaml -l typescript-angular -o /local/ts-angular
Suggest a fix/enhancement
The generated model is
And it is invalid (bigDecimal is not defined). The generated model should be:
The text was updated successfully, but these errors were encountered: