-
Notifications
You must be signed in to change notification settings - Fork 22
Fix nested Request & Response messages #203
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
Conversation
|
@sagikazarmark I'm not good at Go, I'll be glad to get feedback, maybe there are better ways to do this. |
|
I didn't found any tests, so haven't covered this case :( |
|
Yeah, we should probably add some better test cases for generated code. In the meantime, can you give this patch a try? #208 (Updated PHP name generation based on the original compiler code: https://github.com/protocolbuffers/protobuf/blob/6e393fd79667597aac2bb42511fb30c31ff1611d/src/google/protobuf/compiler/php/names.cc) (You can download a prebuilt artifact from this build: https://github.com/twirphp/twirp/actions/runs/12750830294) |
|
@sagikazarmark sure, will try to test your patch. |
|
@antonkomarev have you had a chance to test the patch? |
|
@sagikazarmark not yet, plan to try it in the following days. |
|
@sagikazarmark Yes, it's working as expected! |
Overview
This PR allows to use nested Request messages in service classes (fixes a bug linked below).
What this PR does / why we need it
Will generate:
Instead of:
Special notes for your reviewer
Does this PR introduce a user-facing change?