Documentation
¶
Overview ¶
Package validationentry validates factoryapi.Factory payloads through the canonical validation package without creating an import cycle between pkg/factory/validation and pkg/config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateFactoryAPI ¶
func ValidateFactoryAPI(ctx context.Context, factory factoryapi.Factory, opts factoryvalidation.Options) (factoryvalidation.Result, error)
ValidateFactoryAPI is the single pre-mutation validator for OpenAPI factory payloads. Each invocation maps the payload once via FactoryConfigFromOpenAPI, then runs profile-specific checks without writing disk.
ProfileTopology matches POST /factory-validations (structural validation only). ProfilePrePersist matches editable save and CLI save-from-file pre-checks (canonical JSON load plus blocking-load fallback, then structural validation).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.