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
13 changes: 12 additions & 1 deletion fern/snippets/openapi-specs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ api:
OpenAPI-specific generation settings.
</ParamField>

<ParamField path="title-as-schema-name" type="boolean" default="true" toc={true}>
<ParamField path="settings.title-as-schema-name" type="boolean" default="true" toc={true}>
Whether to use the titles of schemas within an OpenAPI definition as the names of types within Fern.
</ParamField>

Expand Down Expand Up @@ -106,3 +106,14 @@ api:
<ParamField path="example-generation.response.max-depth" type="integer" toc={true}>
Controls the maximum depth for which optional properties will have examples generated in responses.
</ParamField>

<ParamField path="coerce-enums-to-literals" type="boolean" default="true" toc={true}>
Controls whether enums are converted to literal types during code generation. When set to `false`, enums are preserved as enums rather than being converted to literal types. This is useful when you want to maintain the original enum structure from your OpenAPI specification.
</ParamField>

<ParamField path="idiomatic-request-names" type="boolean" default="false" toc={true}>
Controls the naming convention for autogenerated request names. When enabled, places the verb before the noun in request names (e.g., `UsersListRequest` becomes `ListUsersRequest`), following more idiomatic naming patterns.

Disabled by default to maintain backwards compatibility.

</ParamField>