schemautil

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAndValidateSchemas added in v1.1.0

func ExtractAndValidateSchemas(
	parameters *v1alpha1.SchemaSection,
	environmentConfigs *v1alpha1.SchemaSection,
	basePath *field.Path,
) (*apiextschema.Structural, *apiextschema.Structural, field.ErrorList)

ExtractAndValidateSchemas extracts structural schemas and validates openAPIV3Schema fields. Combines ExtractStructuralSchemas and ValidateOpenAPIV3SchemaFields into a single call.

func ExtractStructuralSchemas

func ExtractStructuralSchemas(
	parameters *v1alpha1.SchemaSection,
	environmentConfigs *v1alpha1.SchemaSection,
	basePath *field.Path,
) (*apiextschema.Structural, *apiextschema.Structural, field.ErrorList)

ExtractStructuralSchemas extracts and builds structural schemas from SchemaSection inputs. Returns parameters schema, environmentConfigs schema, and any validation errors.

func ValidateOpenAPIV3SchemaFields added in v1.0.0

func ValidateOpenAPIV3SchemaFields(section *v1alpha1.SchemaSection, fieldPath *field.Path) field.ErrorList

ValidateOpenAPIV3SchemaFields performs strict field validation on an openAPIV3Schema. It rejects unknown fields (e.g., "types" instead of "type") by resolving $ref/$defs, stripping vendor extensions (x-*), and then strict-decoding into JSONSchemaProps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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