Skip to content

docs: document applyQueryDefaultsOnNilRequest Go generator option - #6447

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785344877-go-query-defaults
Open

docs: document applyQueryDefaultsOnNilRequest Go generator option#6447
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785344877-go-query-defaults

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

The Go SDK generator gained an opt-in config option, applyQueryDefaultsOnNilRequest. Go endpoints let callers pass nil for the request struct; until now that path skipped query-parameter encoding entirely, so documented query defaults (x-fern-default, e.g. include_totals=true or page/per_page) were never sent, which could break paginated responses. With the option enabled, a nil request is treated like a zero-value request struct, so the defaults go out on the wire. Default stays false, so existing behavior is unchanged unless opted in.

Adds one <ParamField> for the option to the Go generator configuration reference (fern/products/sdks/generators/go/configuration.mdx), in the existing alphabetical order. No SDK changelog entry, per convention.

Source: fern-api/fern#17256

Link to Devin session: https://app.devin.ai/sessions/8ad195fdf66e43c2bab0d738282afc84

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot requested a review from devalog as a code owner July 29, 2026 17:08
@github-actions

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://fern-preview-devin-1785344877-go-query-defaults.docs.buildwithfern.com/learn

Here are the markdown pages you've updated:

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.

0 participants