forked from NYANDEV/forgejo
[Vendor] update go-swagger v0.21.0 -> v0.25.0 (#12670)
* Update go-swagger * vendor
This commit is contained in:
parent
66843f2237
commit
3270e7a443
350 changed files with 26353 additions and 5552 deletions
8
vendor/github.com/go-swagger/go-swagger/scan/parameters.go
generated
vendored
8
vendor/github.com/go-swagger/go-swagger/scan/parameters.go
generated
vendored
|
@ -40,6 +40,10 @@ func (pt paramTypable) Typed(tpe, format string) {
|
|||
pt.param.Typed(tpe, format)
|
||||
}
|
||||
|
||||
func (pt paramTypable) WithEnum(values ...interface{}) {
|
||||
pt.param.WithEnum(values...)
|
||||
}
|
||||
|
||||
func (pt paramTypable) SetRef(ref spec.Ref) {
|
||||
pt.param.Ref = ref
|
||||
}
|
||||
|
@ -83,6 +87,10 @@ func (pt itemsTypable) SetRef(ref spec.Ref) {
|
|||
pt.items.Ref = ref
|
||||
}
|
||||
|
||||
func (pt itemsTypable) WithEnum(values ...interface{}) {
|
||||
pt.items.WithEnum(values...)
|
||||
}
|
||||
|
||||
func (pt itemsTypable) Schema() *spec.Schema {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue