Open faheem00 opened 4 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
You can probably solve it at your side by providing --type-mappings BigDecimal=string
cli argument to the generator.
Looks like such type mapping should be the default behavior for typescript generators. Would you mind filing a PR for that?
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