-
Notifications
You must be signed in to change notification settings - Fork 349
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: added option 'useJsonWireFormat' #576
Conversation
@stephenh I'm not sure how to fix the build. Looks like an issue with the GitHub secrets? |
@oyvindwe yeah, that's weird, we haven't seen that before...I have a tab open on: To go through when I have time and see if there's something we can poke. :-) |
@stephenh Manually trigger the workflow seems like a possible workaround. |
@oyvindwe hm, manually re-running didn't work, but I merged a potential fix to use I think I'd recently bumped the version of |
@stephenh Merged - ready for workflow approval again. |
@@ -27,19 +27,20 @@ export function generateEnum( | |||
} | |||
|
|||
const delimiter = options.enumsAsLiterals ? ':' : '='; | |||
const stringEnums = options.stringEnums || (options.onlyTypes && options.useJsonWireFormat); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion: wdyt about pushing this handling into options.ts
, i.e. somewhere while initializing options, do an options.stringEnums ??= options.onlyTypes && options.useJsonWireFormat
? Just to encapsulate it a little bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's a good idea. I can fix this in a separate PR. (I just pushed this to this branch, as I didn't notice this PR is already merged.)
Going to go ahead and merge, thanks @oyvindwe ! |
🎉 This PR is included in version 1.115.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes issue #571