Skip to content

Fix wrong swagger schema generation when response_body is set. - #459

Open
xclud wants to merge 1 commit into
aspnet:mainfrom
xclud:fix-response-body-swagger-schema
Open

Fix wrong swagger schema generation when response_body is set.#459
xclud wants to merge 1 commit into
aspnet:mainfrom
xclud:fix-response-body-swagger-schema

Conversation

@xclud

@xclud xclud commented Mar 24, 2022

Copy link
Copy Markdown

When response_body is set in the proto file, the swagger still displays the schema from the response (actually MethodDescriptor.OutputType.ClrType) instead of response[response_body] while the data returned from the service is correct as expected.

This PR fixes the wrong swagger schema generation.

@ghost

ghost commented Mar 24, 2022

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

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