mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-26 19:35:10 +00:00
Update kube-openapi and gnostic dependencies
Pulling in https://github.com/kubernetes/kube-openapi/pull/220
This commit is contained in:
11
vendor/k8s.io/kube-openapi/pkg/util/proto/testing/openapi.go
generated
vendored
11
vendor/k8s.io/kube-openapi/pkg/util/proto/testing/openapi.go
generated
vendored
@@ -21,9 +21,6 @@ import (
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
|
||||
"github.com/googleapis/gnostic/compiler"
|
||||
openapi_v2 "github.com/googleapis/gnostic/openapiv2"
|
||||
)
|
||||
|
||||
@@ -50,13 +47,7 @@ func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error) {
|
||||
f.err = err
|
||||
return
|
||||
}
|
||||
var info yaml.MapSlice
|
||||
err = yaml.Unmarshal(spec, &info)
|
||||
if err != nil {
|
||||
f.err = err
|
||||
return
|
||||
}
|
||||
f.document, f.err = openapi_v2.NewDocument(info, compiler.NewContext("$root", nil))
|
||||
f.document, f.err = openapi_v2.ParseDocument(spec)
|
||||
})
|
||||
return f.document, f.err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user