Skip to content

Conversation

@nohy6630
Copy link
Contributor

Describe the PR
This PR adds support for skipping struct fields with form:"-" tag when parsing query parameters from struct types in @Param comments.

  • Modified operation.go to check for form:"-" tag and skip those fields during parameter parsing
  • Added test case TestParseParamCommentQuerySkipWithStructTag to verify the behavior

Relation issue
#2096

@sdghchj sdghchj merged commit c093962 into swaggo:master Jan 12, 2026
12 checks passed
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 this pull request may close these issues.

2 participants