Skip to content

Conversation

@yeqown
Copy link
Contributor

@yeqown yeqown commented Sep 11, 2025

Description:

This PR introduces a new bind_query flag to the protoc-gen-go-http plugin, allowing users to disable the automatic generation of BindQuery logic in HTTP handlers. This provides finer control over query parameter binding, especially in cases where it's unnecessary or undesired.

Key Changes:

  • Added bind_query CLI flag to main.go default true to keep backward compatibility
  • Propagated bindQuery parameter through generateFile, generateFileContent, and genService
  • Updated httpTemplate.tpl to conditionally include BindQuery logic
  • Extended methodDesc struct to include BindQuery field

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant