-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protoc-gen-openapiv2: Support all HTTP methods supported in OpenAPI v2 (
#2726) * protoc-gen-openapiv2: Fully support all HTTP methods in OpenAPI The handling for mappings with the same path and method caused a crash when provided with an operation with a HEAD, OPTIONS, or TRACE HTTP method, which are all technically supported by OpenAPI. Also fix this same crash when an unsupported HTTP method is provided * Add HEAD, OPTIONS, and TRACE examples to a_bit_of_everything.proto Implement examples in server Test examples in integration tests Regenerate files * Remove TRACE from OpenAPI generation While TRACE is supported in OpenAPI v3, it is not supported in v2
- Loading branch information
Showing
12 changed files
with
3,152 additions
and
245 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
704 changes: 643 additions & 61 deletions
704
examples/internal/clients/abe/api_a_bit_of_everything_service.go
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
338 changes: 189 additions & 149 deletions
338
examples/internal/proto/examplepb/a_bit_of_everything.pb.go
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.