Documentation
¶
Overview ¶
Package openapi acts as a bridge between the Kerria kube-openapi codegen APIs and the OpenAPI tooling of kyaml. Some functions may expect the kyaml global schema store to be initialized with Kerria definitions.
Index ¶
- func ApplyGlobalSchema()
- func BuildInternalOpenAPIV2Specification() *spec.Swagger
- func BuildInternalOpenAPIV3Schemas() map[string]*spec.Schema
- func BuildInternalOpenAPIV3Specification() spec3.OpenAPI
- func DecodeValidatedDefaulted(rnode *kyyaml.RNode, typeMeta kyyaml.TypeMeta) (value reflect.Value, err error)
- func DereferenceResource(rtype kyyaml.TypeMeta) *kyoapi.ResourceSchema
- func DereferenceResourceWithDepth(resource kyyaml.TypeMeta, depth int) *kyoapi.ResourceSchema
- func GetDefinitionName(name string) (string, spec.Extensions)
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func SetDefaults(value reflect.Value, typeMeta kyyaml.TypeMeta) error
- func ValidateAgainstSchema(rnode *kyyaml.RNode, typeMeta kyyaml.TypeMeta) error
- func ValueFromTypeMeta(typeMeta kyyaml.TypeMeta) (value reflect.Value, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGlobalSchema ¶
func ApplyGlobalSchema()
func DereferenceResource ¶
func DereferenceResource(rtype kyyaml.TypeMeta) *kyoapi.ResourceSchema
func DereferenceResourceWithDepth ¶
func DereferenceResourceWithDepth(resource kyyaml.TypeMeta, depth int) *kyoapi.ResourceSchema
func GetDefinitionName ¶
func GetDefinitionName(name string) (string, spec.Extensions)
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func ValidateAgainstSchema ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.