Releases: grpc-ecosystem/grpc-gateway
v2.11.2
This fixes an issue with the openapiv2 generator if there is a colon in the verb, and updates the minimum supported Go version to Go 1.17.
What's Changed
- Fix openapiv2 path parameter parsing when colon in verb by @johanbrandhorst in #2825
- Update minimum supported Go version to 1.17 by @renovate in #2831
Full Changelog: v2.11.1...v2.11.2
v2.11.1
This release fixes a crash in the grpc-gateway handling of requests containing invalid an Grpc-Timeout
or Grpc-Metadata-Bin
header (#2822). It is strongly recommended that users upgrade both the runtime and generator versions.
What's Changed
- Default allow_repeated_fields_in_body option to true and deprecate option by @armsnyder in #2813
- Fix timeout panic by @johanbrandhorst in #2823
New Contributors
- @armsnyder made their first contribution in #2813
Full Changelog: v2.11.0...v2.11.1
v2.11.0
What's Changed
- Set fetch depth for renovate actions by @johanbrandhorst in #2741
- openapiv2: Field options are properly rendered for repeated fields #2531 by @lakshkeswani in #2742
- Set version for gorelease by @johanbrandhorst in #2749
- Disable renovate on v1 by @johanbrandhorst in #2781
- feat: add support for oneof fields in request bodies by @aesadde in #2739
- Bugfix/issue 2681 by @olegvelikanov in #2773
- chore: Included githubactions in the dependabot config by @naveensrinivasan in #2673
- Change renovate branch trigger by @johanbrandhorst in #2791
- fix: extensions in YAML format [#2795] by @hedhyw in #2797
- fix: yaml indent [#2645] by @hedhyw in #2801
- Fix buf plugin's library version by @AlmogBaku in #2800
New Contributors
- @lakshkeswani made their first contribution in #2742
- @aesadde made their first contribution in #2739
- @olegvelikanov made their first contribution in #2773
- @AlmogBaku made their first contribution in #2800
Full Changelog: v2.10.3...v2.11.0
v2.10.3
What's Changed
- protoc-gen-openapiv2: Fix schema types for
Value
andEmpty
well-known types by @haines in #2719 - Use custom token secret for pushes by @johanbrandhorst in #2725
- chore: renovate bot setting to pin actions to a full length commit SHA by @naveensrinivasan in #2724
- protoc-gen-openapiv2: Support all HTTP methods supported in OpenAPI v2 by @mnito in #2726
- Fix overriding path parameter with custom verbs by @oyvindwe in #2727
- Update git push to use full username by @johanbrandhorst in #2732
- Lets try using the checkout token setting by @johanbrandhorst in #2733
- Add old style build tag by @johanbrandhorst in #2734
- Update gopkg.in/yaml.v3 by @sousandrei in #2729
New Contributors
- @haines made their first contribution in #2719
- @sousandrei made their first contribution in #2729
Full Changelog: v2.10.2...v2.10.3
v2.10.2
What's Changed
- Fix node tests by @johanbrandhorst in #2704
- Fix panic in parsing null time/duration in query by @johanbrandhorst in #2703
- Migrate to Github Actions by @johanbrandhorst in #2700
- Add protobuf and grpc runtime versions to buf plugins by @johanbrandhorst in #2702
- Fix readme display error by @lanlyhs in #2706
- openapiv2: fix comment by @kurochan in #2701
New Contributors
Full Changelog: v2.10.1...v2.10.2
v2.10.1
What's Changed
- protoc-gen-openapiv2: Use the canonical camelCase converter for protobuf by @oyvindwe in #2599
- Revert gazelle dependency to original repository by @johanbrandhorst in #2605
- Use Bytes from convert.go to unmarshal byte value by @HubertZhang in #2603
- correct generate field mask for google.protobuf.struct field by @marsianin in #2619
- Update golangci-lint to 1.45 for Go 1.18 support by @johanbrandhorst in #2631
- Turn on dependabot updates for documentation by @achew22 in #2604
- build(deps-dev): bump github-pages from 209 to 225 in /docs by @dependabot in #2633
- support google.protobuf.Value by @wclssdn in #2628
- fix: Correct typos in error messages from loading OpenAPI Configuration by @joonas in #2636
- Set permissions for GitHub actions by @naveensrinivasan in #2641
- Field and schema extensions by @james-o-johnstone in #2418
- chore(deps): update dependency com_github_bazelbuild_buildtools to v5.1.0 (master) by @renovate in #2645
- fix(deps): update google.golang.org/genproto digest to 2d67ff6 (master) by @renovate in #2646
- Format protobuf files with buf by @johanbrandhorst in #2650
- build(deps): bump nokogiri from 1.13.3 to 1.13.4 in /docs by @dependabot in #2638
- Add git blame ignore by @johanbrandhorst in #2652
- Export
defaultQueryParser
struct for custom query parsers by @mikesouza in #2651 - Fix typo in "uannotated" file links by @srowles in #2658
- fix: Content-Type and Grpc-Metadata-Content-Type headers with the health endpoint by @GreyXor in #2634
- protoc-gen-openapiv2: Remove path parameters from body when body is a snake_case field by @oyvindwe in #2600
- Fixed []byte unmarshaling for non proto structs by @gknw in #2693
- protoc-gen-openapiv2: Document and warn about path parameters containing "/" by @oyvindwe in #2697
New Contributors
- @HubertZhang made their first contribution in #2603
- @marsianin made their first contribution in #2619
- @wclssdn made their first contribution in #2628
- @joonas made their first contribution in #2636
- @naveensrinivasan made their first contribution in #2641
- @james-o-johnstone made their first contribution in #2418
- @mikesouza made their first contribution in #2651
- @srowles made their first contribution in #2658
- @GreyXor made their first contribution in #2634
- @gknw made their first contribution in #2693
Full Changelog: v2.10.0...v2.10.1
v2.10.0
This release contains a new annotation that allows you to configure the path parameter names generated in your swagger.json, which can be useful in some circumstances. Please see https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/customizing_openapi_output/#path-parameters for documentation on how to use this new capability.
Note that in order to take advantage of the new annotation, you will need to update your vendored dependency, or update your buf.build/grpc-ecosystem/grpc-gateway
dependency to at least f85c60ac38544f2d8f346491c9d916e5. This can be accomplished by running buf mod update
in the folder where you have your buf.yaml
.
What's Changed
- Add delimiter after response stream error message (#2591) by @stelcodes in #2596
- protoc-gen-openapiv2: support overriding path parameter names by @oyvindwe in #2562
New Contributors
- @stelcodes made their first contribution in #2596
Full Changelog: v2.9.0...v2.10.0
v2.9.0
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
v2.8.0
Overview
This release introduces the new WithHealthzEndpoint
which makes it easy to forward your gRPC health check endpoint to your gRPC-gateway server, and fixes a long standing bug in protoc-gen-openapiv2
where path parameters were included in both the path and the body of the generated spec (#1670 and #1015).
What's Changed
- Include Package in Service Tags when Option is Enabled by @dkiswanto in #2519
- Add
WithHealthzEndpoint
asServeMuxOption
to register a/healthz
endpoint by @brumhard in #2319 - protoc-gen-openapiv2: remove path parameters from body parameters by @oyvindwe in #2553
New Contributors
- @dkiswanto made their first contribution in #2519
- @brumhard made their first contribution in #2319
- @oyvindwe made their first contribution in #2553
Full Changelog: v2.7.3...v2.8.0
v2.7.3
What's Changed
- Update gorelease base to v2.7.2 by @johanbrandhorst in #2467
- Fix README typo about manuall generation by @baryluk in #2471
- Use insecure.NewCredentials instead of grpc.WithInsecure by @jxlwqq in #2470
- fix typos by @haiker2011 in #2474
- docs: specify invalid cases for FieldMask by @hhhapz in #2477
- typo in mux.go by @gabroo in #2479
- Add omit-enum-default-value option to protoc-gen-openapiv2 by @hiroyoshii in #2480
- update plugin option of customizing_openapi_output docs by @hiroyoshii in #2490
- embedding UnimplementedGreeterServer to creating_main.go.md server struct by @mkusaka in #2502
- Fixes additional paths generated when many methods have the same resource path by @aethanol in #2496
New Contributors
- @baryluk made their first contribution in #2471
- @jxlwqq made their first contribution in #2470
- @haiker2011 made their first contribution in #2474
- @hhhapz made their first contribution in #2477
- @gabroo made their first contribution in #2479
- @hiroyoshii made their first contribution in #2480
- @mkusaka made their first contribution in #2502
- @aethanol made their first contribution in #2496
Full Changelog: v2.7.2...v2.7.3