openapi

package
v0.28.7 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMapList

func MakeMapList(sts *spec.Schema, items []interface{}) (rv common.MapList)

func SchemaDeclType

func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType

func UnstructuredToVal

func UnstructuredToVal(unstructured any, schema *spec.Schema) ref.Val

Types

type Schema

type Schema struct {
	Schema *spec.Schema
}

func (*Schema) AdditionalProperties

func (s *Schema) AdditionalProperties() common.SchemaOrBool

func (*Schema) Default

func (s *Schema) Default() any

func (*Schema) Enum

func (s *Schema) Enum() []any

func (*Schema) Format

func (s *Schema) Format() string

func (*Schema) IsXEmbeddedResource

func (s *Schema) IsXEmbeddedResource() bool

func (*Schema) IsXIntOrString

func (s *Schema) IsXIntOrString() bool

func (*Schema) IsXPreserveUnknownFields

func (s *Schema) IsXPreserveUnknownFields() bool

func (*Schema) Items

func (s *Schema) Items() common.Schema

func (*Schema) MaxItems

func (s *Schema) MaxItems() *int64

func (*Schema) MaxLength

func (s *Schema) MaxLength() *int64

func (*Schema) MaxProperties

func (s *Schema) MaxProperties() *int64

func (*Schema) Nullable

func (s *Schema) Nullable() bool

func (*Schema) Properties

func (s *Schema) Properties() map[string]common.Schema

func (*Schema) Required

func (s *Schema) Required() []string

func (*Schema) Type

func (s *Schema) Type() string

func (*Schema) WithTypeAndObjectMeta

func (s *Schema) WithTypeAndObjectMeta() common.Schema

func (*Schema) XListMapKeys

func (s *Schema) XListMapKeys() []string

func (*Schema) XListType

func (s *Schema) XListType() string

type SchemaOrBool

type SchemaOrBool struct {
	SchemaOrBool *spec.SchemaOrBool
}

func (*SchemaOrBool) Allows

func (sb *SchemaOrBool) Allows() bool

func (*SchemaOrBool) Schema

func (sb *SchemaOrBool) Schema() common.Schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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