Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Nov 13, 2024
Merged

Conversation

amckinney
Copy link
Contributor

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

Copy link

github-actions bot commented Nov 13, 2024

@amckinney amckinney merged commit 44ac642 into main Nov 13, 2024
59 checks passed
@amckinney amckinney deleted the amckinney/cli/tree-shaking branch November 13, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants