- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for schemaDefs (0.11 sec)
-
pkg/generated/openapi/cmd/models-schema/main.go
if v2Schema, isOpenAPISchema := schema.(spec.Schema); isOpenAPISchema { schemaDefs[friendlyName(k)] = v2Schema continue } } schemaDefs[friendlyName(k)] = v.Schema } data, err := json.Marshal(&spec.Swagger{ SwaggerProps: spec.SwaggerProps{ Definitions: schemaDefs, Info: &spec.Info{ InfoProps: spec.InfoProps{ Title: "Kubernetes", Version: "unversioned",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
) // The path for definitions in OpenAPI v2 and v3 are different. Translate the path if necessary // The provided schemaRef uses a v2 prefix and is converted to v3 if the v2 bool is false func refForOpenAPIVersion(schemaRef string, v2 bool) string { if v2 { return schemaRef } return strings.Replace(schemaRef, definitionPrefix, v3DefinitionPrefix, 1) } var definitions map[string]common.OpenAPIDefinition
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 22.8K bytes - Viewed (0)