validatePatternCatalog
validatePatternCatalog(
patterns,options?):PatternCatalogValidationResult
Defined in: wp-typia-project-tools/src/runtime/pattern-catalog.ts:570
Validate typed pattern catalog metadata declared in scripts/block-config.ts.
The validator checks catalog shape, duplicate slugs, optional section-role rules, safe content file paths, and missing files when a workspace root is provided. With a workspace root, it also parses serialized block markup and compares section role markers against the catalog manifest.
Parameters
Section titled “Parameters”patterns
Section titled “patterns”readonly PatternCatalogEntry[]
Pattern catalog entries to validate.
options?
Section titled “options?”PatternCatalogValidationOptions = {}
Optional project root and section role marker convention.
Returns
Section titled “Returns”PatternCatalogValidationResult
Structured diagnostics split into errors and warnings.