Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Generics used with function scoped types use incorrect schema names #1882

Closed
berk-karaal opened this issue Sep 5, 2024 · 0 comments · Fixed by #1883
Closed

Bug: Generics used with function scoped types use incorrect schema names #1882

berk-karaal opened this issue Sep 5, 2024 · 0 comments · Fixed by #1883

Comments

@berk-karaal
Copy link
Contributor

Describe the bug
After the #1866 PR, using generics with function scoped types returns wrong schema names which collide and overwrites each other.

To Reproduce
I created a simple project to reproduce the bug. You can follow the README to reproduce it.
Repo: https://github.com/berk-karaal/swag-generic-func-scoped-structs-bug

Expected behavior
Generics with function scoped types use correct schema names.

Your swag version
I use the HEAD of the master branch. Current latest commit hash: 10030b02b48c59c73e6c4fd07e3256b61aff339f.
No issue before this commit.

Your go version
1.22.6

Desktop (please complete the following information):

  • OS: Fedora 40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant