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
I think api files can easily be moved to the tags but for models that will cause number of issues:
Models reused across the packages will likely need to be redeclared or declared using reusable package
Fix here should enable api files to be saved in the separate folder with subfolders for tag names (property based)
Bug Report Checklist
Description
Golang generator should generate multiple packages similar to java operator.
Package should be based on the tags:
Currently generating open API for golang will end up with errors related to duplicates.
For example generating this API will create +30 errors in methods and structs duplication:
https://github.com/Apicurio/apicurio-registry/blob/2.0.0.Final/app/src/main/resources-unfiltered/META-INF/resources/api-specifications/registry/v2/openapi.json#L2952-L2983
openapi-generator version
master and 5.1.1
OpenAPI declaration file content or url
https://github.com/Apicurio/apicurio-registry/blob/2.0.0.Final/app/src/main/resources-unfiltered/META-INF/resources/api-specifications/registry/v2/openapi.json
Generation Details
Steps to reproduce
Suggest a fix
After checking implementation I think there is reasonable way to fix it:
I'm happy contribute this change considering it is something that is valid for golang and openapi gen community.
The text was updated successfully, but these errors were encountered: