-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[WIP] Support oneof fields in body #634
Conversation
Thank you @bonafideyan for the insight in 634904c.
To let the TestEcho focus on the fundamental functionalities.
Add a check on loading google.api.HttpRule messages
hey, thanks for your work ! are there any news about this PR ? |
I've opened a PR to update this branch to master state, see : #759 edit: closed wrong branch used |
@Tommy-42 if you want to, you can take this branch and rebase on master again, we've fixed the CI generation problems. |
@johanbrandhorst thanks you, I'll try to do something today for it |
Is the project alive? Any plans to merge/fix this after more than a year? CC\ @yugui |
Yes, this project is alive. No, this PR is unlikely to be merged by the original author. Would you be interested in picking up the work in a separate branch? |
@johanbrandhorst thanks! Do you know any workaround to be able to make use of |
What is the problem with |
Hello, are there any plans to resurrect this PR? |
Please raise a separate issue if you're having a problem with this. This PR is dead. |
Hi 👋 @johanbrandhorst would you accept new PRs for this feature? It would be cool to be able to use message SimpleMessage {
...
oneof ext {
int64 en = 6;
Embedded no = 7;
}
}
service EchoService {
rpc EchoBody(SimpleMessage) returns (SimpleMessage) {
option (google.api.http) = {
post: "/v1/example/echo_body"
body: "*"
additional_bindings {
put: "/v1/example/echo_body/{id}"
body: "no"
}
};
}
} I have a working solution and some tests for this (I'm not too familiar with the codebase but used this closed PR as guidance and #570) Would be more than happy to submit the PR! |
Hi @aesadde. We certainly would be interested in that, please feel free to submit another PR. Thanks! |
oneof
fields have already been supported in path parameters (Support param for field from Oneof definition. #621) and query parameters (Support oneof fields in query params #321).This PR replaces Supports oneof fields in more places #416 and fixes oneof fields are not supported as the "body"? #413.
oneof fields defined in a message in another package.