openapi-generator-cli: [BUG] - Generation Error in V.2.10.0
🐛 Bug Report:
The generation of file from this configuration has broken in V2.10.0 (but worked fine in V.2.9.0 or previous)
{
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.2.0",
"generators": {
"my-application": {
"generatorName": "typescript-angular",
"output": "generated-sources/openapi",
"inputSpec": "http://localhost:8080/***.yaml",
"auth": "Authorization:*****",
"typeMappings": {
"DateTime": "Date"
},
"additionalProperties": {
"supportsES6": true,
"withInterfaces": true
}
}
}
}
}
When run from CLI
openapi-generator-cli generate --generator-key my-application
get this error
[[my-application] http://localhost:8080/***.yaml] La sintassi del nome del file, della directory o del volume non � corretta.
[[my-application] http://localhost:8080/***.yaml] C:\...\jdk-11.0.18/bin/java" -jar "D:\...\node_modules\@openapitools\openapi-generator-cli\versions\7.2.0.jar" generate --input-spec="ht
tp://localhost:8080/***.yaml" --generator-name="typescript-angular" --output="generated-sources/openapi" --auth="Authorization:***" --type-mappings="DateTime=Date" --additional-properties="
supportsES6=true,withInterfaces=true exited with code 1
[brd] http://localhost:8080/***.yaml
C:\***\jdk-11.0.18/bin/java" -jar "D:\***\node_modules\@openapitools\openapi-generator-cli\versions\7.2.0.jar" generate --input-spec="http://localhost:8080/***.yaml" --gener
ator-name="typescript-angular" --output="generated-sources/openapi" --auth="***" --type-mappings="DateTime=Date" --additional-properties="supportsES6=true,withInterfaces=true
Code generation failed
Process finished with exit code 1
If i’m rollback to 2.9.0 all work fine
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 3
- Comments: 15 (10 by maintainers)
Commits related to this issue
- fix: use path.join for generating java bin path fix #758 — committed to mok-liee/openapi-generator-cli by mok-liee 4 months ago
reverted, please install the latest release: https://github.com/OpenAPITools/openapi-generator-cli/releases/tag/v2.11.0
thanks for reporting the issue.
@mok-liee can you please take a look when you’ve time?
related PR: https://github.com/OpenAPITools/openapi-generator-cli/pull/756