This release adds the ability to filter properties (Services, RPCs, Fields, Enum values) from being rendered in the OpenAPI v2 spec generated by protoc-gen-openapiv2
. See https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/customizing_openapi_output/#hiding-fields-methods-services-and-enum-values for more information about this new exciting capability!
Other new features:
- A new option to generate the OpenAPI v2 spec in YAML format
- Allow serving a health endpoint at an arbitrary path with the new
WithHealthEndpointAt
ServeMux
option
What's Changed
- Annotate incoming and outgoing context by @rogchap in #2574
- protoc-gen-openapiv2: support YAML OpenAPI/Swagger v2 definition generation by @hedhyw in #2579
- Add support for
google.api.VisibilityRule
s annotations to hide APIs and fields by @BCook98 in #2578 - feature/custom HTTP health check endpoint by @antonioiubatti93 in #2587
New Contributors
- @rogchap made their first contribution in #2574
- @hedhyw made their first contribution in #2579
- @BCook98 made their first contribution in #2578
- @antonioiubatti93 made their first contribution in #2587
Full Changelog: v2.8.0...v2.9.0