openapi

package
v0.0.0-...-d0717c5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyGlobalSchema

func ApplyGlobalSchema()

func BuildInternalOpenAPIV2Specification

func BuildInternalOpenAPIV2Specification() *spec.Swagger

func BuildInternalOpenAPIV3Schemas

func BuildInternalOpenAPIV3Schemas() map[string]*spec.Schema

func BuildInternalOpenAPIV3Specification

func BuildInternalOpenAPIV3Specification() spec3.OpenAPI

func DecodeValidatedDefaulted

func DecodeValidatedDefaulted(rnode *kyyaml.RNode, typeMeta kyyaml.TypeMeta) (value reflect.Value, err error)

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 SetDefaults

func SetDefaults(value reflect.Value, typeMeta kyyaml.TypeMeta) error

func ValidateAgainstSchema

func ValidateAgainstSchema(rnode *kyyaml.RNode, typeMeta kyyaml.TypeMeta) error

func ValueFromTypeMeta

func ValueFromTypeMeta(typeMeta kyyaml.TypeMeta) (value reflect.Value, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳