Open yilinjuang opened 4 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
We are running into similar issues.
I have reproduced the bug above using the data files indicated for the swift5
language generation for:
openapi-generator-cli 4.3.1 commit : 003165c built : 2020-05-06T09:38:39Z source : https://github.com/openapitools/openapi-generator docs : https://openapi-generator.tech/
on macOS 10.15.4
openapi-generator generate -g swift5 -i ~/Desktop/testbug/test.yaml -o ~/Desktop/testbug/OUTPUT/
In some more complex cases we are also getting to versions of a model file, "ModelName.swift" and "ModelName2.swift" and references to each in the code which is a serious problem because the code is wrong.
Bug Report Checklist
Description
openapi-generator version
4.3.1 from latest master
OpenAPI declaration file content or url
test.yaml
paths/tag.yaml
components/misc.yaml
Command line used for generation
default option. any language. An example is
Steps to reproduce
generate throws warning
Related issues/PRs
Might be related to https://github.com/OpenAPITools/openapi-generator/pull/5413
Suggest a fix
Want to first make sure it's not other bugs causing this. Then I'll file an issue to swagger parser. In the meantime, maybe we want to downgrade parser to 2.0.17?