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

Fix TypeScript enum default generation in StringLiteral mode #1619

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

nycdotnet
Copy link
Sponsor Contributor

This fixes #1618

I used the newer object pattern-matching syntax. If this is a concern, I can do the check manually.

@nycdotnet
Copy link
Sponsor Contributor Author

Will fix the raw string literals usage.

@nycdotnet
Copy link
Sponsor Contributor Author

nycdotnet commented Aug 24, 2023

Hi @RicoSuter I noticed you've recently done some work in this repo. If you're planning to revise NJsonSchema soon, I would greatly appreciate you accepting this PR (and pulling it into Nswag). It fixes the TypeScript enumeration gen for us. Thank you!

@RicoSuter
Copy link
Owner

Thanks for the fix.
v11

@RicoSuter RicoSuter merged commit 69933dc into RicoSuter:master Sep 26, 2023
1 check passed
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.

TypeScript generation with EnumStyle StringLiteral and defaults
2 participants