Overview of OpenAPI extensions

Fern supports a variety of OpenAPI extensions that enhance your API specification and generate higher-quality SDKs.

You can apply these extensions in two ways: by overlaying them in separate override files or by embedding them directly in your OpenAPI specification. See Overrides for more information.

Available extensions

The table below shows all available extensions and links to detailed documentation for each one.

ExtensionDescription
x-fern-versionConfigure API version schemes and headers
x-fern-audiencesFilter endpoints, schemas, and properties by audience
x-fern-availabilityMark availability status (beta, generally-available, deprecated)
x-fern-base-pathSet base path prepended to all endpoints
x-fern-enumAdd descriptions and custom names to enum values
x-fern-examplesAssociate request and response examples
x-fern-global-headersConfigure headers used across all endpoints
x-fern-ignoreSkip reading specific endpoints or schemas
x-fern-sdk-method-nameCustomize SDK method names
x-fern-sdk-group-nameOrganize methods into SDK groups
x-fern-parameter-nameCustomize parameter variable names
x-fern-property-nameCustomize object property variable names
x-fern-type-nameOverride auto-generated names for inline schemas
x-fern-server-nameName your servers
Request a new extension

If there’s an extension you want that doesn’t already exist, file an issue to start a discussion about it.

FastAPI

FastAPI allows you to add extensions directly in your route decorators and models. See our FastAPI integration guide for detailed examples.