-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
[BUG] [typescript-axios] Property of number type incorrectly typed as BigDecimal #5919
Labels
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
You can probably solve it at your side by providing Looks like such type mapping should be the default behavior for typescript generators. Would you mind filing a PR for that? |
This was referenced Oct 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When generating an openapi using the
typescript-axios
tool, a property withtype
asstring
andformat
asnumber
generates a typeBigDecimal
for the generatedapi.ts
file. However, theBigDecimal
type does not exist.example -
generated code -
openapi-generator version
1.0.12-4.3.0
Command line used for generation
node node_modules/@openapitools/openapi-generator-cli/bin/openapi-generator generate -i ./src/openapi.yaml -g typescript-axios -o ./lib -c ./config.json
Related issues/PRs
This may be related - Link to an issue in swagger-codegen
The text was updated successfully, but these errors were encountered: