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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Hi, it seems there is case collision issue with schema names in typescript generator.
When schema names conflict due to case differences, the generated model file names are suffixed with index,
but the model import and export statements don’t reflect those file names, causing broken references.
I first encountered this with typescript-axios generator, but the issue is reproducible with typescript generator.
I think I found related change #19715, and following fix #19913 although it is not directly related to typescript.
Bug Report Checklist
Description
Hi, it seems there is case collision issue with schema names in typescript generator.
When schema names conflict due to case differences, the generated model file names are suffixed with index,
but the model import and export statements don’t reflect those file names, causing broken references.
I first encountered this with typescript-axios generator, but the issue is reproducible with typescript generator.
I think I found related change #19715, and following fix #19913 although it is not directly related to typescript.
openapi-generator version
v7.9.0 or higher
OpenAPI declaration file content or url
openapitools.json
Generation Details
The schema
Modela
createsmodela0.ts
, but the model is not referenced with index-suffixed file name.Steps to reproduce
java -jar "openapi-generator-cli.jar" generate --input-spec ./spec.json --output ./generated --generator-name typescript-axios --additional-properties withSeparateModelsAndApi=true,apiPackage=apis,modelPackage=models
Related issues/PRs
#19715
Suggest a fix
Not sure but changes regarding
seenModelFilenames
needs to be reverted just like #19913?The text was updated successfully, but these errors were encountered: