validationentry

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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