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
When webhooks are defined with multiple tags, and a tag is shared with a "normal" API, the webhook [by tag] file generation is overwriting the just generated >API file with same tag.
So after API file was created with operations related to path described by OAS file, content is overwritten with the operation related to the webhooks definition because of Webhooks is also having the sametag value : it create same file name
Bug Report Checklist
Description
When webhooks are defined with multiple tags, and a tag is shared with a "normal" API, the webhook [by tag] file generation is overwriting the just generated >API file with same tag.
So after API file was created with operations related to path described by OAS file, content is overwritten with the operation related to the webhooks definition because of Webhooks is also having the same
tag value
: it create same file nameopenapi-generator version
master branch (commit #74044c3427)
OpenAPI declaration file content or url
gist: link
Generation Details
Steps to reproduce
Execute the generation based onto above command line options
Related issues/PRs
Suggest a fix
Issue is coming from sequence (https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java#L1304-L1309):
The text was updated successfully, but these errors were encountered: