Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -151,7 +151,7 @@ Usage:
func handleExportArgumentsForBytes(arguments map[string]interface{}, bytes []byte) (handled bool, err error) {
// Unpack the discovery document.
info, err := compiler.ReadInfoFromBytes("source", bytes)
info, err := compiler.ReadInfoFromBytes("", bytes)
if err != nil {
return true, err
}

View File

@@ -18,8 +18,8 @@ import (
"net/url"
"strings"
discovery "github.com/googleapis/gnostic/discovery"
openapi3 "github.com/googleapis/gnostic/OpenAPIv3"
discovery "github.com/googleapis/gnostic/discovery"
)
func pathForMethod(path string) string {
@@ -59,9 +59,9 @@ func buildOpenAPI3SchemaOrReferenceForSchema(schema *discovery.Schema) *openapi3
}
}
if schema.Items != nil {
s2 := buildOpenAPI3SchemaOrReferenceForSchema(schema.Items)
s.Items = &openapi3.ItemsItem{}
s.Items.SchemaOrReference = append(s.Items.SchemaOrReference, s2)
s.Items = &openapi3.ItemsItem{
SchemaOrReference: []*openapi3.SchemaOrReference{buildOpenAPI3SchemaOrReferenceForSchema(schema.Items)},
}
}
if (schema.Properties != nil) && (len(schema.Properties.AdditionalProperties) > 0) {
s.Properties = &openapi3.Properties{}