-
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: add support for comments on union fields in generateOneofProperty #1136
Conversation
- Added functionality to `generateOneofProperty` to include comments for each union field, enhancing documentation support for union fields in TypeScript output. - Previously, comments for individual fields within a `oneof` type were omitted. This update gathers comments from each field and appends them to the generated type for clarity. Issue: [stephenh#1122](stephenh#1122)
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.
@sefaphlvn this looks great! Can you run yarn proto2ts
and push the changed files up to the PR? That is basically how we regression test changes.
Shoot, @sefaphlvn looks like we're really close to merging, but prettier failed; can you run |
Looks great! Thanks @sefaphlvn ! |
🎉 This issue has been resolved in version 2.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR tweaks the output from #1136 slightly to avoid adding the trailing `//` after the union member separator if there isn't a documentation comment for the following oneof field (or if comments are turned off).
generateOneofProperty
to include comments for each union field, enhancing documentation support for union fields in TypeScript output.oneof
type were omitted. This update gathers comments from each field and appends them to the generated type for clarity.Issue: #1122