Skip to content

docs: document x-fern-global-parameters extension and CLI generator support#6076

Merged
Swimburger merged 3 commits into
mainfrom
devin/1783235236-document-global-parameters
Jul 5, 2026
Merged

docs: document x-fern-global-parameters extension and CLI generator support#6076
Swimburger merged 3 commits into
mainfrom
devin/1783235236-document-global-parameters

Conversation

@Swimburger

Copy link
Copy Markdown
Member

Summary

Documents the x-fern-global-parameters feature on the public docs site, covering both shipped phases: the OpenAPI extension (parsing) and its consumption by the CLI generator.

A global parameter is a value set once (at the client/CLI level) and injected into every relevant request instead of being passed per call — think a global currency set via flag, env var, or default. It generalizes global headers to any wire location (body/query/header/path).

Changes

  • New canonical page api-def/openapi/extensions/global-parameters.mdx — the full reference: the x-fern-global-parameters declaration and its fields (name, in, target, type, env, default, optional, apply, parameter-name), the per-operation x-fern-global-parameter opt-in, and the resolution order (per-call > flag/arg > env > default).
  • Nav — added "Global parameters" under API Definitions → OpenAPI → Extensions, right after "Global headers".
  • Extensions overview table — added an x-fern-global-parameters row.
  • CLI generator → OpenAPI extensions page — new "Global parameters" section showing flag/env/default resolution with a concrete CLI example, cross-linking to the canonical page.

Cross-references follow the canonical-home pattern: the extension page owns the full explanation; the CLI page links to it.

Notes for reviewer

  • All internal links were constructed from the YAML nav config (product slug api-definitions, section extensions; CLI product cli-generator, section get-started), not disk paths.
  • Content is derived from the shipped implementation (fern#16848 for parsing, fern#16885 for CLI generation).

Link to Devin session: https://app.devin.ai/sessions/319fc43b72a241148ea408e965654d9f
Requested by: @Swimburger

…upport

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@Swimburger Swimburger requested a review from devalog as a code owner July 5, 2026 07:07
@Swimburger Swimburger self-assigned this Jul 5, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 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

### Fields

<ParamField path="name" type="string" required={true}>
The canonical identifier for the parameter. It is the base for the generated flag or constructor argument, and the key operations use to [opt in](#apply-to-specific-operations).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [vale] reported by reviewdog 🐶
[Microsoft.Contractions] Use 'it's' instead of 'It is'.

### Fields

<ParamField path="name" type="string" required={true}>
The canonical identifier for the parameter. It is the base for the generated flag or constructor argument, and the key operations use to [opt in](#apply-to-specific-operations).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Hyphens] 'in](#apply-to' doesn't need a hyphen.

</ParamField>

<ParamField path="apply" type="string" default="explicit">
How the parameter applies to operations. `explicit` applies only to operations that [opt in](#apply-to-specific-operations); `auto` applies to every operation whose request contains the target.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Hyphens] 'in](#apply-to' doesn't need a hyphen.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

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

<ParamField path="name" type="string" required={true}>
The canonical identifier for the parameter. It's the base for the generated flag or constructor argument, and the key operations use to [opt in](#apply-to-specific-operations).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Hyphens] 'in](#apply-to' doesn't need a hyphen.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@Swimburger Swimburger merged commit 2675fea into main Jul 5, 2026
4 checks passed
@Swimburger Swimburger deleted the devin/1783235236-document-global-parameters branch July 5, 2026 07:13
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