Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter interface {
Convert(input PropertyConvertInput) *apiextensions.JSONSchemaProps
}
type PropertyConvertInput ¶
type PropertyConvertInput struct {
Schema *openapi3.SchemaRef
ExtensionsSchemaRef *openapi3.SchemaRef
PropertyConfig *configv1alpha1.PropertyMapping
Depth int
Path []string
Visited map[*openapi3.Schema]struct{}
}
func NewPropertyConvertInput ¶
func NewPropertyConvertInput( schema *openapi3.SchemaRef, extensionsSchemaRef *openapi3.SchemaRef, propertyConfig *configv1alpha1.PropertyMapping, path []string, ) PropertyConvertInput
NewPropertyConvertInput creates a PropertyConvertInput with an initialized visited set for cycle detection. Use this at entry points; recursive calls should pass the existing Visited map instead.
func (PropertyConvertInput) Child ¶
func (p PropertyConvertInput) Child(schema *openapi3.SchemaRef, extensionsSchemaRef *openapi3.SchemaRef, depth int, path []string) PropertyConvertInput
Child returns a derived input for recursive conversion, inheriting the property config and visited set from the parent.
Click to show internal directories.
Click to hide internal directories.