Documentation ¶
Index ¶
- Constants
- func MergeArrays(ar1 []string, ar2 []string) []string
- func MergeRequiredFields(ext spec.Extensions, required []string) []string
- func TransformSchema(s *spec.Schema, transformers ...SchemaTransformer) *spec.Schema
- type AdditionalPropertiesTransformer
- type CopyTransformer
- type ExtendSettings
- type ExtendTransformer
- type RequiredForHelmTransformer
- type SchemaTransformer
Constants ¶
View Source
const XExtendKey = "x-extend"
View Source
const XRequiredForHelm = "x-required-for-helm"
Variables ¶
This section is empty.
Functions ¶
func MergeArrays ¶
func MergeRequiredFields ¶
func MergeRequiredFields(ext spec.Extensions, required []string) []string
func TransformSchema ¶
func TransformSchema(s *spec.Schema, transformers ...SchemaTransformer) *spec.Schema
Types ¶
type CopyTransformer ¶
type CopyTransformer struct{}
type ExtendSettings ¶
type ExtendSettings struct {
Schema *string `json:"schema,omitempty"`
}
func ExtractExtendSettings ¶
func ExtractExtendSettings(s *spec.Schema) *ExtendSettings
type ExtendTransformer ¶
type RequiredForHelmTransformer ¶
type RequiredForHelmTransformer struct{}
Click to show internal directories.
Click to hide internal directories.