Skip to content

Commit

Permalink
Bump github.com/go-openapi/validate from 0.19.8 to 0.20.2 (#2800)
Browse files Browse the repository at this point in the history
* Bump github.com/go-openapi/validate from 0.19.8 to 0.20.2

Bumps [github.com/go-openapi/validate](https://github.com/go-openapi/validate) from 0.19.8 to 0.20.2.
- [Release notes](https://github.com/go-openapi/validate/releases)
- [Commits](go-openapi/validate@v0.19.8...v0.20.2)

Signed-off-by: dependabot[bot] <[email protected]>

* Updated swagger-gen version and re-run generator

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

* Add swagger-gen to static check ignore list

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

* Fix error message in test

Signed-off-by: Juraci Paixão Kröhling <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
dependabot[bot] and jpkrohling authored May 17, 2021
1 parent 726c352 commit d43af83
Show file tree
Hide file tree
Showing 16 changed files with 1,126 additions and 164 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ THRIFT=docker run --rm -u ${shell id -u} -v "${PWD}:/data" $(THRIFT_IMG) thrift
THRIFT_GO_ARGS=thrift_import="github.com/apache/thrift/lib/go/thrift"
THRIFT_GEN_DIR=thrift-gen

SWAGGER_VER=0.12.0
SWAGGER_IMAGE=quay.io/goswagger/swagger:$(SWAGGER_VER)
SWAGGER_VER=0.27.0
SWAGGER_IMAGE=quay.io/goswagger/swagger:v$(SWAGGER_VER)
SWAGGER=docker run --rm -it -u ${shell id -u} -v "${PWD}:/go/src/" -w /go/src/ $(SWAGGER_IMAGE)
SWAGGER_GEN_DIR=swagger-gen

Expand Down Expand Up @@ -173,6 +173,7 @@ lint-staticcheck:
| grep -v \
-e model/model.pb.go \
-e thrift-gen/ \
-e swagger-gen/ \
>> $(LINT_LOG) || true
@[ ! -s "$(LINT_LOG)" ] || (echo "Detected staticcheck failures:" | cat - $(LINT_LOG) && false)

Expand Down
2 changes: 1 addition & 1 deletion cmd/collector/app/zipkin/http_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func TestSaveSpansV2(t *testing.T) {
{body: []byte("[]"), code: http.StatusBadRequest, headers: map[string]string{"Content-Encoding": "gzip"}, resBody: "Unable to process request body: unexpected EOF\n"},
{body: []byte("not good"), code: http.StatusBadRequest, resBody: "Unable to process request body: invalid character 'o' in literal null (expecting 'u')\n"},
{body: []byte("[{}]"), code: http.StatusBadRequest, resBody: "Unable to process request body: validation failure list:\nid in body is required\ntraceId in body is required\n"},
{body: []byte(`[{"id":"1111111111111111", "traceId":"1111111111111111", "localEndpoint": {"ipv4": "A"}}]`), code: http.StatusBadRequest, resBody: "Unable to process request body: wrong ipv4\n"},
{body: []byte(`[{"id":"1111111111111111", "traceId":"1111111111111111", "localEndpoint": {"ipv4": "A"}}]`), code: http.StatusBadRequest, resBody: "Unable to process request body: validation failure list:\nvalidation failure list:\nipv4 in body must be of type ipv4: \"A\"\n"},
}
for _, test := range tests {
h := createHeader("application/json")
Expand Down
26 changes: 13 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ require (
github.com/HdrHistogram/hdrhistogram-go v0.9.0 // indirect
github.com/Shopify/sarama v1.28.0
github.com/apache/thrift v0.14.1
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/bsm/sarama-cluster v2.1.13+incompatible
github.com/crossdock/crossdock-go v0.0.0-20160816171116-049aabb0122b
github.com/dgraph-io/badger v1.6.2
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/fatih/color v1.9.0 // indirect
github.com/fsnotify/fsnotify v1.4.9
github.com/go-kit/kit v0.10.0 // indirect
github.com/go-openapi/errors v0.19.4
github.com/go-openapi/loads v0.19.5
github.com/go-openapi/runtime v0.19.15
github.com/go-openapi/spec v0.20.2
github.com/go-openapi/strfmt v0.19.5
github.com/go-openapi/swag v0.19.13
github.com/go-openapi/validate v0.19.8
github.com/go-openapi/analysis v0.20.1 // indirect
github.com/go-openapi/errors v0.20.0
github.com/go-openapi/loads v0.20.2
github.com/go-openapi/runtime v0.19.28
github.com/go-openapi/spec v0.20.3
github.com/go-openapi/strfmt v0.20.1
github.com/go-openapi/swag v0.19.15
github.com/go-openapi/validate v0.20.2
github.com/gocql/gocql v0.0.0-20200228163523-cd4b606dd2fb
github.com/gogo/googleapis v1.4.0
github.com/gogo/protobuf v1.3.2
Expand All @@ -32,16 +34,14 @@ require (
github.com/hashicorp/go-plugin v1.4.0
github.com/hashicorp/yamux v0.0.0-20190923154419-df201c70410d // indirect
github.com/kr/pretty v0.2.1
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.6 // indirect
github.com/mitchellh/mapstructure v1.2.2 // indirect
github.com/mjibson/esc v0.2.0
github.com/oklog/run v1.1.0 // indirect
github.com/olivere/elastic v6.2.35+incompatible
github.com/opentracing-contrib/go-grpc v0.0.0-20191001143057-db30781987df
github.com/opentracing-contrib/go-stdlib v0.0.0-20190519235532-cf7a6c988dc9
github.com/opentracing/opentracing-go v1.2.0
github.com/pelletier/go-toml v1.6.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.5.1
github.com/prometheus/common v0.10.0 // indirect
github.com/prometheus/procfs v0.1.3 // indirect
Expand All @@ -60,13 +60,13 @@ require (
github.com/vektra/mockery v0.0.0-20181123154057-e78b021dcbb5
github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad
github.com/xdg-go/scram v1.0.2
go.mongodb.org/mongo-driver v1.3.2 // indirect
go.mongodb.org/mongo-driver v1.5.2 // indirect
go.uber.org/atomic v1.7.0
go.uber.org/automaxprocs v1.4.0
go.uber.org/zap v1.16.0
golang.org/x/lint v0.0.0-20200302205851-738671d3881b
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4
golang.org/x/net v0.0.0-20210510120150-4163338589ed
golang.org/x/sys v0.0.0-20210423082822-04245dca01da
google.golang.org/grpc v1.29.1
gopkg.in/ini.v1 v1.52.0 // indirect
gopkg.in/yaml.v2 v2.4.0
Expand Down
Loading

0 comments on commit d43af83

Please sign in to comment.