generated: ./hack/update-vendor.sh

This commit is contained in:
Jiahui (Jared) Feng
2021-11-15 15:54:59 -08:00
committed by Jiahui Feng
parent d7a3d5d19b
commit 73ffb49203
43 changed files with 276 additions and 111 deletions

View File

@@ -24,6 +24,7 @@ import (
"k8s.io/kube-openapi/pkg/validation/spec"
"k8s.io/kube-openapi/pkg/schemamutation"
"k8s.io/kube-openapi/pkg/util"
)
@@ -113,7 +114,7 @@ func renameDefinition(s *spec.Swagger, renames map[string]string) *spec.Swagger
ret := &spec.Swagger{}
*ret = *s
ret = replaceReferences(func(ref *spec.Ref) *spec.Ref {
ret = schemamutation.ReplaceReferences(func(ref *spec.Ref) *spec.Ref {
refName := ref.String()
if newRef, found := refRenames[refName]; found {
ret := spec.MustCreateRef(newRef)