Class MediaBlocksPipelineValidator
- Assembly
- VisioForge.Core.dll
Complete preflight validation of a VisioForge.Core.MediaBlocks.Serialization.MediaBlocksPipelineDocument before it is materialized or run: structure, known blocks, factories, availability on the current platform, pad reference shape, resource references and unsupported topology cycles. Errors block materialization and run; warnings do not.
public static class MediaBlocksPipelineValidatorInheritance
Inherited Members
Methods
Validate(MediaBlocksPipelineDocument, IMediaBlockResourceResolver, string)
Validates a pipeline document against the block catalog and, when provided, a resource resolver. Includes the structural checks of VisioForge.Core.MediaBlocks.Serialization.MediaBlocksPipelineDocumentValidator.ValidateStructure(VisioForge.Core.MediaBlocks.Serialization.MediaBlocksPipelineDocument).
public static IReadOnlyList<MediaBlocksDiagnostic> Validate(MediaBlocksPipelineDocument document, IMediaBlockResourceResolver resolver = null, string baseDirectory = null)Parameters
documentMediaBlocksPipelineDocument-
The document to validate.
resolverIMediaBlockResourceResolver-
The resolver that will be used at materialization time, when the document references host resources. Null is valid for documents without resource references.
baseDirectorystring-
The directory relative asset paths resolve against, matching the one materialization will use. Null skips the input-asset existence check.
Returns
- IReadOnlyList<MediaBlocksDiagnostic>
-
The list of diagnostics found; empty when the document is ready to materialize.