Table of Contents

Class MediaBlocksPipelineValidator

Namespace
VisioForge.Core.MediaBlocks.Serialization
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 MediaBlocksPipelineValidator

Inheritance

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

document MediaBlocksPipelineDocument

The document to validate.

resolver IMediaBlockResourceResolver

The resolver that will be used at materialization time, when the document references host resources. Null is valid for documents without resource references.

baseDirectory string

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.