Bumping k8s dependencies to 1.13
This commit is contained in:
16
vendor/github.com/googleapis/gnostic/surface/model_openapiv3.go
generated
vendored
16
vendor/github.com/googleapis/gnostic/surface/model_openapiv3.go
generated
vendored
@@ -19,8 +19,9 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
openapiv3 "github.com/googleapis/gnostic/OpenAPIv3"
|
||||
"strings"
|
||||
|
||||
openapiv3 "github.com/googleapis/gnostic/OpenAPIv3"
|
||||
)
|
||||
|
||||
// NewModelFromOpenAPIv3 builds a model of an API service for use in code generation.
|
||||
@@ -270,13 +271,14 @@ func (b *OpenAPI3Builder) typeForSchema(schema *openapiv3.Schema) (kind FieldKin
|
||||
case "array":
|
||||
if schema.Items != nil {
|
||||
// we have an array.., but of what?
|
||||
items := schema.Items.SchemaOrReference
|
||||
if len(items) == 1 {
|
||||
if items[0].GetReference().GetXRef() != "" {
|
||||
return FieldKind_ARRAY, typeForRef(items[0].GetReference().GetXRef()), format
|
||||
} else if items[0].GetSchema().Type == "string" {
|
||||
items := schema.Items
|
||||
if items != nil {
|
||||
a := items.GetSchemaOrReference()
|
||||
if a[0].GetReference().GetXRef() != "" {
|
||||
return FieldKind_ARRAY, typeForRef(a[0].GetReference().GetXRef()), format
|
||||
} else if a[0].GetSchema().Type == "string" {
|
||||
return FieldKind_ARRAY, "string", format
|
||||
} else if items[0].GetSchema().Type == "object" {
|
||||
} else if a[0].GetSchema().Type == "object" {
|
||||
return FieldKind_ARRAY, "interface{}", format
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user