Documentation
¶
Index ¶
- func ExtractAndValidateSchemas(parameters *v1alpha1.SchemaSection, environmentConfigs *v1alpha1.SchemaSection, ...) (*apiextschema.Structural, *apiextschema.Structural, field.ErrorList)
- func ExtractStructuralSchemas(parameters *v1alpha1.SchemaSection, environmentConfigs *v1alpha1.SchemaSection, ...) (*apiextschema.Structural, *apiextschema.Structural, field.ErrorList)
- func ValidateOpenAPIV3SchemaFields(section *v1alpha1.SchemaSection, fieldPath *field.Path) field.ErrorList
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.
Click to show internal directories.
Click to hide internal directories.