Skip to content

add flag for exporting enum value arrays #1616 #1661

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

Merged
merged 1 commit into from
May 16, 2024

Conversation

luchsamapparat
Copy link
Contributor

@luchsamapparat luchsamapparat commented May 14, 2024

Changes

This adds a --enum-values flag to the CLI.

If true, for each enum an array of valid values is exported. The default is false.

See #1616 for details and motivation.

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

Copy link

changeset-bot bot commented May 14, 2024

⚠️ No Changeset found

Latest commit: 1eb254d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@drwpow drwpow left a comment

Choose a reason for hiding this comment

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

💯 Perfect implementation, and great tests! No notes. Thank you!

@drwpow drwpow merged commit 6ea1b32 into openapi-ts:main May 16, 2024
6 checks passed
@borzaka
Copy link

borzaka commented Jun 11, 2024

Is it possible to backport this to 6.x @drwpow ?

@darkbasic
Copy link

@luchsamapparat #2138

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.

4 participants