converter

package
v0.0.0-...-b789e9d Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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