Skip to content

Investigate correct struct tags for Gin query parameter binding: query vs form #2

Description

@coderabbitai

Issue Description

There's uncertainty about which struct tag should be used for binding URL query parameters in Gin:

  • Currently using: query:"page"
  • Potentially should be: form:"page"

Context

In the QueryOptions struct in responses.go, we're using query tags for binding query parameters. However, there's a question about whether Gin's binding engine actually looks for form tags instead when using methods like ShouldBindQuery or ShouldBind.

Tasks

  • Test current implementation with query tags
  • Test alternative implementation with form tags
  • Verify which approach works correctly with Gin's binding methods
  • Update documentation/code accordingly

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions