openapi

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToAPIExtensionsJSONSchemaProps

func ConvertToAPIExtensionsJSONSchemaProps(
	schema *clusterv1.JSONSchemaProps, fldPath *field.Path,
) (*apiextensions.JSONSchemaProps, field.ErrorList)

convertToAPIExtensionsJSONSchemaProps converts a clusterv1.JSONSchemaProps to apiextensions.JSONSchemaProp. NOTE: This is used whenever we want to use one of the upstream libraries, as they use apiextensions.JSONSchemaProp. NOTE: If new fields are added to clusterv1.JSONSchemaProps (e.g. to support complex types), the corresponding schema validation must be added to validateRootSchema too. See: https://github.com/kubernetes-sigs/cluster-api/blob/v1.5.1/internal/topology/variables/schema.go#L35

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL