Skip to content

docs: document array query parameter formats for Query binder#4116

Merged
ReneWerner87 merged 3 commits intomainfrom
claude/document-array-query-params-9CVGA
Feb 27, 2026
Merged

docs: document array query parameter formats for Query binder#4116
ReneWerner87 merged 3 commits intomainfrom
claude/document-array-query-params-9CVGA

Conversation

@ReneWerner87
Copy link
Copy Markdown
Member

Add a comprehensive "Array Query Parameters" subsection to the Query
binder documentation covering all supported formats:

  • Repeated key (?k=a&k=b)
  • Bracket notation (?k[]=a&k[]=b)
  • Comma-separated values (?k=a,b) with EnableSplittingOnParsers
  • Indexed bracket notation for nested structs (?posts[0][title]=...)
  • Nested bracket notation without index (?prefs[tags]=...)

Each format includes struct definitions, curl examples, and notes on
configuration requirements.

https://claude.ai/code/session_013uGgsF9zw8uKryMH9uRGnv

Add a comprehensive "Array Query Parameters" subsection to the Query
binder documentation covering all supported formats:
- Repeated key (?k=a&k=b)
- Bracket notation (?k[]=a&k[]=b)
- Comma-separated values (?k=a,b) with EnableSplittingOnParsers
- Indexed bracket notation for nested structs (?posts[0][title]=...)
- Nested bracket notation without index (?prefs[tags]=...)

Each format includes struct definitions, curl examples, and notes on
configuration requirements.

https://claude.ai/code/session_013uGgsF9zw8uKryMH9uRGnv
Copilot AI review requested due to automatic review settings February 27, 2026 19:45
@ReneWerner87 ReneWerner87 requested a review from a team as a code owner February 27, 2026 19:45
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the documentation for Fiber's Query binder by introducing a dedicated section on how to handle array query parameters. The new content clarifies the various supported formats and provides practical examples, making it easier for developers to correctly bind array values from URL queries to Go structs. This improves the clarity and completeness of the API documentation.

Highlights

  • New Documentation Section: Added a comprehensive 'Array Query Parameters' subsection to the Query binder documentation.
  • Supported Formats: Detailed documentation for various array query parameter formats, including Repeated key, Bracket notation, Comma-separated values (with EnableSplittingOnParsers), Indexed bracket notation for nested structs, and Nested bracket notation without index.
  • Examples and Configuration: Each format includes struct definitions, curl examples, and notes on specific configuration requirements, such as EnableSplittingOnParsers.
Changelog
  • docs/api/bind.md
    • Added a new section 'Array Query Parameters' detailing various formats for binding array values from query strings.
    • Included examples for repeated keys, bracket notation, comma-separated values, indexed bracket notation for nested structs, and nested bracket notation without index.
    • Provided Go struct definitions and curl commands for each query parameter format.
Activity
  • No activity has occurred on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f342f53 and f8f82b0.

📒 Files selected for processing (1)
  • docs/api/bind.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/api/bind.md

Walkthrough

Added a comprehensive "Array Query Parameters" section to docs/api/bind.md describing multiple array query formats (repeated key, bracket notation, comma-separated, indexed/nested bracket notation), examples, curl snippets, and notes about EnableSplittingOnParsers and struct/tag behavior. (49 words)

Changes

Cohort / File(s) Summary
Documentation
docs/api/bind.md
Added "Array Query Parameters" section covering repeated key, bracket notation, comma-separated values (with/without EnableSplittingOnParsers), indexed bracket notation, nested bracket notation, examples, curl commands, struct/tag notes, and pointer field behavior.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • gaby
  • sixcolors
  • efectn

Poem

🐰 I hopped through queries, tails held high,
Brackets and commas beneath the sky,
Examples sketched in curl and line,
Parsers splitting, fields align,
A docmade carrot — tasty, fine! 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description provides a clear overview of the changes but lacks completion of the required template sections, particularly the checklist items that should be marked as completed for a documentation update. Complete the PR description template by marking relevant checklist items (e.g., 'Documentation update', 'Type of change') and confirming that documentation requirements were met as specified in the template.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'docs: document array query parameter formats for Query binder' clearly and concisely summarizes the main change: adding documentation for array query parameter formats to the Query binder documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/document-array-query-params-9CVGA

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Fix markdownlint MD040 violations by adding `text` language
specifier to all bare fenced code blocks.

https://claude.ai/code/session_013uGgsF9zw8uKryMH9uRGnv
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds excellent and comprehensive documentation for binding array query parameters in various formats. The examples are clear and cover common use cases. I have one suggestion to improve clarity in the 'Nested Bracket Notation (Without Index)' section by explaining the use of pointers, which could be confusing for some users.

Comment thread docs/api/bind.md
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation to the Query binder guide explaining the supported ways to pass and bind array-like query parameters in Fiber.

Changes:

  • Introduces a new “Array Query Parameters” subsection under the Query binder docs.
  • Documents repeated-key, bracket notation, comma-separated (with EnableSplittingOnParsers), indexed bracket notation for nested structs, and nested bracket notation for nested structs.

Comment thread docs/api/bind.md Outdated
Comment thread docs/api/bind.md Outdated
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/api/bind.md`:
- Around line 476-482: Add a missing row to the overview table for the fifth
format "Nested bracket notation (without index)"; insert a new table row between
the existing rows with Format = "Nested bracket notation (without index)",
Example = "`?filters[colors][]=red&filters[colors][]=blue`" (or a similar
nested-bracket example matching the detailed section), and Requires
`EnableSplittingOnParsers` = "No" so the summary table at the top matches the
detailed section (lines ~596-618) describing the nested bracket format.

ℹ️ Review info

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0d28949 and f342f53.

📒 Files selected for processing (1)
  • docs/api/bind.md

Comment thread docs/api/bind.md
- Add missing "Nested bracket notation" row to the overview table so
  it matches the five subsections below
- Fix result comment to use *Prefs.Tags (pointer dereference) since
  Tags is *[]string
- Add a note explaining why pointer fields are useful (distinguishing
  missing vs empty parameters)

https://claude.ai/code/session_013uGgsF9zw8uKryMH9uRGnv
@ReneWerner87 ReneWerner87 merged commit c962c79 into main Feb 27, 2026
6 checks passed
@ReneWerner87 ReneWerner87 deleted the claude/document-array-query-params-9CVGA branch February 27, 2026 20:16
@github-project-automation github-project-automation Bot moved this to Done in v3 Feb 27, 2026
@ReneWerner87 ReneWerner87 modified the milestones: v3, v3.1.0 Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants