From 1fc0c16968304b169fb7eb52f162ffa4c7cdc55c Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Fri, 3 Nov 2017 00:20:15 -0700 Subject: Update vendor libraries except client-go, apimachinery and ugorji/go (#1197) This fix updates vendor libraries except client-go, apimachinery and ugorji/go, as github.com/ugorji/go/codec is causing compatibilities issues. Signed-off-by: Yong Tang --- vendor/github.com/go-openapi/spec/swagger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/github.com/go-openapi/spec/swagger.go') diff --git a/vendor/github.com/go-openapi/spec/swagger.go b/vendor/github.com/go-openapi/spec/swagger.go index 393a31677..23780c78a 100644 --- a/vendor/github.com/go-openapi/spec/swagger.go +++ b/vendor/github.com/go-openapi/spec/swagger.go @@ -156,7 +156,7 @@ func (s SchemaOrStringArray) MarshalJSON() ([]byte, error) { if s.Schema != nil { return json.Marshal(s.Schema) } - return nil, nil + return []byte("null"), nil } // UnmarshalJSON converts this schema object or array from a JSON structure -- cgit v1.2.3