fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.69k stars 151 forks source link

feat(cli): Add OpenAPI tree-shaking setting #5168

Closed amckinney closed 1 week ago

amckinney commented 1 week ago

This adds the only-include-referenced-schemas setting to implement OpenAPI tree shaking for endpoints, webhooks, and websocket channels.

Users can opt-in with the following configuration:

# generators.yml
api:
  specs:
    - openapi: ../openapi.yml
      settings:
        only-include-referenced-schemas: true
github-actions[bot] commented 1 week ago

🌿 Preview your docs: https://fern-preview-21deda67-96d7-4e52-a1de-4c4972de5886.docs.buildwithfern.com/learn