forked from grpc-ecosystem/grpc-gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add explicit dependency versions (grpc-ecosystem#696) Version constraints are copied from existing Bazel rules. In the future, these version upgrades must be performed atomically. * Add OpenTracing support to docs (grpc-ecosystem#705) * protoc-gen-swagger: support all well-known wrapper types There were a few well-known wrapper types missing from the wkSchemas map. In specific UInt32Value, UInt64Value and BytesValue. This change handles them (and maps them to the same swagger types as the non-wrapped values) This also fixes the mapping of Int64Value. The Int64Value handling maps the value to a swagger integer. The documentation for Int64Value indicates that it should be mapped to a JSON string (also the mapping for normal int64 in protoc-gen-swagger maps it to a string, so this was inconsistent.) * Add test case and proposed fix for path component with trailing colon (and string) (grpc-ecosystem#708) * If a pattern has no verb, match with a verb arg appended to last component Parsing out a "verb" from the input path is a convenience for parsing. Whether the colon and string are _actually_ a verb depends on the matching HTTP rule. This change gives a verb-less pattern a chance to match a path by assuming the colon+string suffix are a part of the final component. Fixes grpc-ecosystem#224 Signed-off-by: James Hamlin <james@goforward.com> * Fix up examples * Make support paths option Make protoc-gen-grpc-gateway support paths option such like golang/protobuf#515.
- Loading branch information
1 parent
a7ddcec
commit e78c7c5
Showing
20 changed files
with
605 additions
and
91 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ bazel-genfiles | |
bazel-grpc-gateway | ||
bazel-out | ||
bazel-testlogs | ||
|
||
# Go vendor directory | ||
vendor |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
required = [ | ||
"github.com/golang/protobuf/protoc-gen-go", | ||
] | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true | ||
|
||
# Constrained versions that are defined in WORKSPACE are at the top | ||
|
||
[[constraint]] | ||
# Also defined in WORKSPACE | ||
revision = "0ca9ea5df5451ffdf184b4428c902747c2c11cd7" | ||
name = "github.com/ghodss/yaml" | ||
|
||
[[constraint]] | ||
# Also defined in WORKSPACE | ||
revision = "f8815663de1e64d57cdd4ee9e2b2fa96977a030e" | ||
name = "github.com/go-resty/resty" | ||
|
||
[[constraint]] | ||
# Also defined in WORKSPACE | ||
revision = "6724a57986aff9bff1a1770e9347036def7c89f6" | ||
name = "github.com/rogpeppe/fastuuid" | ||
|
||
[[override]] | ||
# Also defined in WORKSPACE | ||
revision = "eb3733d160e74a9c7e442f435eb3bea458e1d19f" | ||
name = "gopkg.in/yaml.v2" | ||
|
||
# These versions are constrained transitively by bazelbuild/rules_go | ||
|
||
[[constraint]] | ||
# Also defined in bazelbuild/rules_go | ||
# https://github.com/bazelbuild/rules_go/blob/436452edc29a2f1e0edc22d180fbb57c27e6d0af/go/private/repositories.bzl#L75 | ||
revision = "b4deda0973fb4c70b50d226b1af49f3da59f5265" | ||
name = "github.com/golang/protobuf" | ||
|
||
[[constraint]] | ||
# Also defined in bazelbuild/rules_go | ||
# https://github.com/bazelbuild/rules_go/blob/436452edc29a2f1e0edc22d180fbb57c27e6d0af/go/private/repositories.bzl#L110 | ||
revision = "640f4622ab692b87c2f3a94265e6f579fe38263d" | ||
name = "golang.org/x/net" | ||
|
||
[[constraint]] | ||
# Also defined in bazelbuild/rules_go | ||
# https://github.com/bazelbuild/rules_go/blob/436452edc29a2f1e0edc22d180fbb57c27e6d0af/go/private/repositories.bzl#L123 | ||
revision = "d11072e7ca9811b1100b80ca0269ac831f06d024" | ||
name = "google.golang.org/grpc" | ||
|
||
[[constraint]] | ||
# Also defined in bazelbuild/rules_go | ||
# https://github.com/bazelbuild/rules_go/blob/436452edc29a2f1e0edc22d180fbb57c27e6d0af/go/private/repositories.bzl#L131 | ||
revision = "86e600f69ee4704c6efbf6a2a40a5c10700e76c2" | ||
name = "google.golang.org/genproto" | ||
|
||
[[constraint]] | ||
# Also defined in bazelbuild/rules_go | ||
# https://github.com/bazelbuild/rules_go/blob/436452edc29a2f1e0edc22d180fbb57c27e6d0af/go/private/repositories.bzl#L138 | ||
revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" | ||
name = "github.com/golang/glog" | ||
|
||
[[override]] | ||
# Also defined in bazelbuild/rules_go | ||
# https://github.com/bazelbuild/rules_go/blob/436452edc29a2f1e0edc22d180fbb57c27e6d0af/go/private/repositories.bzl#L117 | ||
revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" | ||
name = "golang.org/x/text" |
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.