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

Add include-mode to select which operations to include #99

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

svix-mman
Copy link
Contributor

Keep the same default behavior to only include public operations

Will be useful when we generate the internal JS lib for frontend

help

Options:
      --include-mode <INCLUDE_MODE>
          Which operations to include
          
          [default: only-public]

          Possible values:
          - only-public:       Only public options
          - public-and-hidden: Both public operations and operations marked with `x-hidden`
          - only-hidden:       Only operations marked with `x-hidden`

Keep the same default behavior to only include public operations
@svix-mman svix-mman requested a review from a team as a code owner March 12, 2025 22:43
/// Only public options
OnlyPublic,
/// Both public operations and operations marked with `x-hidden`
PublicAndHidden,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get it, but PublicAndHidden just kinda makes my brain bleed blood tears when I read it.

@svix-mman svix-mman merged commit 0cae3a8 into main Mar 13, 2025
3 checks passed
@svix-mman svix-mman deleted the mendy/rework-include-hidden branch March 20, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants