Open yusijs opened 2 years ago
Given this value in parameters:
{ "type": "string", "format": "number", "description": "Get log lines (example 1000)", "name": "lines", "in": "query" }
the generator tries to use this parameter in the functions: lines?: Decimal and imports it like so: import { Decimal } from '../model/decimal';
lines?: Decimal
import { Decimal } from '../model/decimal';
However, the file model/decimal is never created, so the generate source is invalid.
6.1.0
Gist
openapi-generator-cli generate -i swagger_new.json -g typescript-node -o generated-sources/openapi --additional-properties=npmName=openApiTest,supportsES6=true,npmVersion=1.0.0
Run the command with an endpoint containing type="string" and format ="number"
Is there any progress on this issue?
Bug Report Checklist
Description
Given this value in parameters:
the generator tries to use this parameter in the functions:
lines?: Decimal
and imports it like so:import { Decimal } from '../model/decimal';
However, the file model/decimal is never created, so the generate source is invalid.
openapi-generator version
6.1.0
OpenAPI declaration file content or url
Gist
Generation Details
openapi-generator-cli generate -i swagger_new.json -g typescript-node -o generated-sources/openapi --additional-properties=npmName=openApiTest,supportsES6=true,npmVersion=1.0.0
Steps to reproduce
Run the command with an endpoint containing type="string" and format ="number"
Related issues/PRs
Suggest a fix