Skip to content
Open
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
7 changes: 7 additions & 0 deletions fern/snippets/openapi-specs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ api:
inline-all-of-schemas: true
prefer-undiscriminated-unions-with-literals: true
respect-parameter-content: true
respect-operation-id-word-boundaries: true
filter:
endpoints: ["POST /users", "GET /users/{id}"]
example-generation:
Expand Down Expand Up @@ -138,6 +139,12 @@ api:
Enables respecting forward compatible enums in OpenAPI specifications.
</ParamField>

<ParamField path="settings.respect-operation-id-word-boundaries" type="boolean" default="false" toc={true}>
Splits an `operationId` on separators, camelCase transitions, and digits when building API Reference URL slugs, and strips the tag prefix. When `false`, an `operationId` that contains an underscore or digit is split only on separators, so `Plants_ListPlantVarieties` under the `plants` tag becomes `/plants/listplantvarieties` instead of `/plants/list-plant-varieties`. Affects API Reference URLs only; generated SDK method names are unchanged.

Enabling this setting moves existing API Reference URLs. Add [redirects](/learn/docs/seo/redirects) for the old paths and update hardcoded links in the same change.
</ParamField>

<ParamField path="settings.use-bytes-for-binary-response" type="boolean" toc={true}>
Enables using the `bytes` type for binary responses. Defaults to file stream.
</ParamField>
Expand Down
Loading