Skip to content

feat: handle response_body option. - #477

Open
jozuenoon wants to merge 1 commit into
google:mainfrom
jozuenoon:feat/handle-response-body-option
Open

feat: handle response_body option.#477
jozuenoon wants to merge 1 commit into
google:mainfrom
jozuenoon:feat/handle-response-body-option

Conversation

@jozuenoon

@jozuenoon jozuenoon commented Jul 27, 2026

Copy link
Copy Markdown

Add response_body support to protoc-gen-openapi

The response_body field in google.api.http was being ignored. When set, the response schema now uses the named field's type instead of the full output message, matching how body already works for requests.

Scalar/non-message field kinds are logged as unsupported (same as the request side). Missing field names also log a warning.

Added test fixture under examples/tests/responsebody/ covering a message-typed response body field.

@google-cla

google-cla Bot commented Jul 27, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@jozuenoon
jozuenoon marked this pull request as ready for review July 27, 2026 14:41
@jozuenoon
jozuenoon requested a review from a team as a code owner July 27, 2026 14:41
@jozuenoon

Copy link
Copy Markdown
Author

This PR covers changes in #406

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.

1 participant