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:

generators.yml
1- name: fernapi/fern-openapi
2 version: 0.0.31
3 config:
4 format: yaml # options are yaml or json
5 output:
6 location: local-file-system
7 path: ../openapi # relative path to output location