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

Omit well-known type definitions from swagger output #541

Merged
merged 2 commits into from
Mar 12, 2018

Conversation

alexleigh
Copy link
Contributor

In #496 the swagger output was improved by adding support for more well-known types to the wktSchemas map. However, these types are not added to a parallel list of cases in renderMessagesAsDefinition, causing the swagger output to contain type definitions for types that will never be emitted by the schema generator. This change fixes the issue by omitting these well-known types from the generated swagger schemas.

@achew22
Copy link
Collaborator

achew22 commented Feb 16, 2018

@alexleigh Do you think you could add an example proto in examples/examplepb that exhibits this new behavior (and modify the makefile to have it be built automatically?)

@achew22
Copy link
Collaborator

achew22 commented Mar 12, 2018

@alexleigh, Looks great to me! Thanks so much for your contribution 😄. I look forward to working more with you in the future!

@achew22 achew22 merged commit 58f78b9 into grpc-ecosystem:master Mar 12, 2018
@alexleigh alexleigh deleted the swagger-omit-well-known branch March 12, 2018 00:27
adasari pushed a commit to adasari/grpc-gateway that referenced this pull request Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants