//go:build !ignore_autogenerated // +build !ignore_autogenerated /* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by openapi-gen. DO NOT EDIT. package namedmodels import ( common "k8s.io/kube-openapi/pkg/common" spec "k8s.io/kube-openapi/pkg/validation/spec" testdatanamedmodels "k8s.io/kube-openapi/test/integration/testdata/namedmodels" ) func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ testdatanamedmodels.AtomicStruct{}.OpenAPIModelName(): schema_test_integration_testdata_namedmodels_AtomicStruct(ref), "k8s.io/kube-openapi/test/integration/testdata/namedmodels.ContainedStruct": schema_test_integration_testdata_namedmodels_ContainedStruct(ref), testdatanamedmodels.Struct{}.OpenAPIModelName(): schema_test_integration_testdata_namedmodels_Struct(ref), } } func schema_test_integration_testdata_namedmodels_AtomicStruct(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "Field": { SchemaProps: spec.SchemaProps{ Description: "The generator should respect a manually declared OpenAPIModelName.", Default: 0, Type: []string{"integer"}, Format: "int32", }, }, }, Required: []string{"Field"}, }, }, } } func schema_test_integration_testdata_namedmodels_ContainedStruct(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, }, }, } } func schema_test_integration_testdata_namedmodels_Struct(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ "Field": { SchemaProps: spec.SchemaProps{ Description: "The generator should see the +k8s:openapi-model-package and assume that a OpenAPIModelName is (or will be) generated.", Default: map[string]interface{}{}, Ref: ref("k8s.io/kube-openapi/test/integration/testdata/namedmodels.ContainedStruct"), }, }, "OtherField": { SchemaProps: spec.SchemaProps{ Default: 0, Type: []string{"integer"}, Format: "int32", }, }, }, Required: []string{"Field", "OtherField"}, }, }, Dependencies: []string{ "k8s.io/kube-openapi/test/integration/testdata/namedmodels.ContainedStruct"}, } }