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

Generic types with fields of type []T panic #1246

Closed
pdylanross opened this issue Jun 30, 2022 · 0 comments
Closed

Generic types with fields of type []T panic #1246

pdylanross opened this issue Jun 30, 2022 · 0 comments

Comments

@pdylanross
Copy link
Contributor

Describe the bug
When generating type definitions for generic types that contain arrays of the generic type, swag panics.

To Reproduce
Steps to reproduce the behavior:

  1. Create a generic type with a field of type []T
  2. Reference that type in a swagger doc comment
  3. Generate swagger

Expected behavior
Generic types with inner arrays should not panic.

Your swag version
v1.8.3

Your go version
1.18

Additional context
PR to fix coming shortly.

@pdylanross pdylanross changed the title Generic types with fields of type T[] panic Generic types with fields of type []T panic Jun 30, 2022
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

No branches or pull requests

1 participant