schema

package
v1.3.10 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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