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

feat: add support for comments on union fields in generateOneofProperty #1136

Merged
merged 4 commits into from
Nov 16, 2024

Conversation

sefaphlvn
Copy link
Contributor

  • 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: #1122

- 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)
Copy link
Owner

@stephenh stephenh left a 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.

@stephenh
Copy link
Owner

Shoot, @sefaphlvn looks like we're really close to merging, but prettier failed; can you run yarn format and then we should be good? Thanks!

@stephenh
Copy link
Owner

Looks great! Thanks @sefaphlvn !

@stephenh stephenh merged commit c933c9c into stephenh:main Nov 16, 2024
6 checks passed
stephenh pushed a commit that referenced this pull request Nov 16, 2024
# [2.3.0](v2.2.7...v2.3.0) (2024-11-16)

### Features

* add support for comments on union fields in generateOneofProperty ([#1136](#1136)) ([c933c9c](c933c9c)), closes [#1122](#1122)
@stephenh
Copy link
Owner

🎉 This issue has been resolved in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants