Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fern/products/api-def/openapi/extensions/default.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The `x-fern-default` extension lets you specify a client-side default value for

This is useful for pinning an API version header or a region path parameter while still allowing callers to override the value. `x-fern-default` is supported across all SDK languages.

<Note>Fern uses `x-fern-default` instead of the standard OpenAPI `default` property because they have different semantics. The OpenAPI `default` on a schema describes the value the **server** assumes when the parameter is omitted — it's a documentation hint and doesn't affect client behavior. `x-fern-default` instructs the generated SDK to **actively send** the value in every request when the caller doesn't provide one, ensuring the parameter is always present on the wire.</Note>

## Path parameters

In the example below, the SDK sends `us-east-1` for `region` when the caller doesn't specify one.
Expand Down
Loading