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

[Do Not Merge] Oneof matching does not work when yaml tag does not exist in struct generated from proto #355

Closed
wants to merge 1 commit into from

Conversation

goccy
Copy link
Collaborator

@goccy goccy commented Oct 16, 2023

oneof matching does not work when yaml tag does not exist in struct generated from proto.
This PR contains only the reproduced code of problem.

I intentionally removed the yaml tag to reproduce the problem.
https://github.com/goccy/scenarigo/blob/c29d36ed1161c035a4ca5c89b4915b84b4a6e195/testdata/gen/pb/test/test.pb.go#L278

@zoncoen
Copy link
Owner

zoncoen commented Jan 27, 2024

Sorry for my late response. I fixed the issue by handling the protobuf_oneof struct tag like the inline options. In addition, I enabled access to fields by the name option value of protobuf struct tags.
#390

Thank you for your report!

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.

2 participants