Fern Definition

Export from Fern Definition to OpenAPI

To prevent lock-in to the Fern Definition format, we provide a generator that will export your Fern Def files to OpenAPI 3.1. This lets you switch to using OpenAPI at any time, or use your API definition with OpenAPI tools. To convert your Fern Definition to OpenAPI, use the fern-openapi generator.

Update your generators.yml file:

1- name: fernapi/fern-openapi
2 version: 0.0.28
3 config:
4 format: yaml # options are yaml or json
5 github:
6 repository: your-organization/your-repository