diff options
Diffstat (limited to 'vendor/github.com/go-swagger/go-swagger/scan/responses.go')
-rw-r--r-- | vendor/github.com/go-swagger/go-swagger/scan/responses.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/go-swagger/go-swagger/scan/responses.go b/vendor/github.com/go-swagger/go-swagger/scan/responses.go index 7b08b16b0c..3710ae0d8c 100644 --- a/vendor/github.com/go-swagger/go-swagger/scan/responses.go +++ b/vendor/github.com/go-swagger/go-swagger/scan/responses.go @@ -38,6 +38,10 @@ func (ht responseTypable) Typed(tpe, format string) { ht.header.Typed(tpe, format) } +func (ht responseTypable) WithEnum(values ...interface{}) { + ht.header.WithEnum(values) +} + func bodyTypable(in string, schema *spec.Schema) (swaggerTypable, *spec.Schema) { if in == "body" { // get the schema for items on the schema property @@ -85,6 +89,7 @@ func (ht responseTypable) Schema() *spec.Schema { func (ht responseTypable) SetSchema(schema *spec.Schema) { ht.response.Schema = schema } + func (ht responseTypable) CollectionOf(items *spec.Items, format string) { ht.header.CollectionOf(items, format) } |