Open dhon opened 1 month ago
@devhl-labs Figured I'd throw a mention your way just for informational purposes, since it seems related to the issue you raised and resolved that I have linked in the ticket.
Oh interesting, i thought the problem was fixed which is why i reverted my hotfix. If it wasn't fixed beyond my c# only hotfix then imy issue shouldn't have been closed.
I checked again and somehow I don't see this problem anymore.
Description
An object model will create as a circular reference to itself if the name is a combination of the parent object and the field.
In the YAML code below, if you change the property in the HelloWorld schema to anything other than 'test' it will generate correctly. It seems like it is occurring because the two schemas are fighting over the same name, where the reference generation always wins and the original schema file is never created.
openapi-generator version
version: 7.7.0 openapi-generator-cli: 2.13.4 generatorName: typescript-angular ngVersion: 16.2.12
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
openapi-generator-cli generate -c ./openapitools.json --generator-key test
Related issues/PRs
I believe this is the same issue mentioned here that was resolved and later reverted, but may be mistaken. https://github.com/OpenAPITools/openapi-generator/issues/13709
Suggest a fix
No suggestions, sorry.