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
When generating code for the typescript-angular language and specifying either --model-name-prefix or --model-name-suffix, the paths used for importing models are wrong (missing said prefix/suffix).
Using the spec & command given below, a model file called model/testSchema.ts is generated,:
I've looked into the source code but have not yet found what would be the cause of this behaviour. Will create a PR if I ever find a fix for this on my own (if that's okay?).
Thanks a lot for this great project!
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
When generating code for the
typescript-angular
language and specifying either--model-name-prefix
or--model-name-suffix
, the paths used for importing models are wrong (missing said prefix/suffix).Using the spec & command given below, a model file called
model/testSchema.ts
is generated,:The import for this model in
api/default.service.ts
is as follow:The path is wrong and should be
../model/testSchema
(or alternatively the name of the model file is wrong).openapi-generator version
master
and4.0.0-beta2
.OpenAPI declaration file content or url
Command line used for generation
Related issues/PRs
Suggest a fix
I've looked into the source code but have not yet found what would be the cause of this behaviour. Will create a PR if I ever find a fix for this on my own (if that's okay?).
Thanks a lot for this great project!
The text was updated successfully, but these errors were encountered: