1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-06-22 21:04:41 +08:00

[Vendor] update go-swagger v0.21.0 -> v0.25.0 ()

* Update go-swagger

* vendor
This commit is contained in:
6543
2020-09-01 16:01:23 +02:00
committed by GitHub
parent 66843f2237
commit 3270e7a443
350 changed files with 26353 additions and 5552 deletions
go.modgo.sum
vendor
cloud.google.com/go/compute/metadata
github.com
asaskevich/govalidator
fsnotify/fsnotify
go-openapi
go-swagger/go-swagger
golang/protobuf/proto
kr/pretty
mailru/easyjson
mitchellh/mapstructure
pelletier/go-toml
spf13
stretchr/testify
subosito/gotenv
go.mongodb.org/mongo-driver
google.golang.org
gopkg.in/yaml.v3
modules.txt

@ -163,6 +163,9 @@ const (
// PathParamGarbledWarning ...
PathParamGarbledWarning = "in path %q, param %q contains {,} or white space. Albeit not stricly illegal, this is probably no what you want"
// ParamValidationTypeMismatch indicates that parameter has validation which does not match its type
ParamValidationTypeMismatch = "validation keywords of parameter %q in path %q don't match its type %s"
// PathStrippedParamGarbledWarning ...
PathStrippedParamGarbledWarning = "path stripped from path parameters %s contains {,} or white space. This is probably no what you want."
@ -341,6 +344,9 @@ func invalidParameterDefinitionMsg(path, method, operationID string) errors.Erro
func invalidParameterDefinitionAsSchemaMsg(path, method, operationID string) errors.Error {
return errors.New(errors.CompositeErrorCode, InvalidParameterDefinitionAsSchemaError, path, method, operationID)
}
func parameterValidationTypeMismatchMsg(param, path, typ string) errors.Error {
return errors.New(errors.CompositeErrorCode, ParamValidationTypeMismatch, param, path, typ)
}
// disabled
//func invalidResponseDefinitionAsSchemaMsg(path, method string) errors.Error {