schema

package
v1.5.0-slog4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const XExtendKey = "x-extend"
View Source
const XRequiredForHelm = "x-required-for-helm"

Variables

This section is empty.

Functions

func MergeArrays

func MergeArrays(ar1 []string, ar2 []string) []string

func MergeRequiredFields

func MergeRequiredFields(ext spec.Extensions, required []string) []string

func TransformSchema

func TransformSchema(s *spec.Schema, transformers ...SchemaTransformer) *spec.Schema

Types

type AdditionalPropertiesTransformer

type AdditionalPropertiesTransformer struct {
	Parent *spec.Schema
}

func (*AdditionalPropertiesTransformer) Transform

Transform sets undefined AdditionalProperties to false recursively.

type CopyTransformer

type CopyTransformer struct{}

func (*CopyTransformer) Transform

func (t *CopyTransformer) Transform(s *spec.Schema) *spec.Schema

type ExtendSettings

type ExtendSettings struct {
	Schema *string `json:"schema,omitempty"`
}

func ExtractExtendSettings

func ExtractExtendSettings(s *spec.Schema) *ExtendSettings

type ExtendTransformer

type ExtendTransformer struct {
	Parent *spec.Schema
}

func (*ExtendTransformer) Transform

func (t *ExtendTransformer) Transform(s *spec.Schema) *spec.Schema

type RequiredForHelmTransformer

type RequiredForHelmTransformer struct{}

func (*RequiredForHelmTransformer) Transform

func (t *RequiredForHelmTransformer) Transform(s *spec.Schema) *spec.Schema

type SchemaTransformer

type SchemaTransformer interface {
	Transform(s *spec.Schema) *spec.Schema
}

Jump to

Keyboard shortcuts

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