Skip to content

validateBlockPatternContentNesting

validateBlockPatternContentNesting(content, options): ValidateBlockPatternContentNestingResult

Defined in: wp-typia-block-runtime/src/metadata-core-nesting.ts:991

Parse serialized WordPress block comments in a pattern file and compare the discovered block tree with a typed block nesting contract.

Relationship violations are returned as error diagnostics. Unknown blocks, malformed block comments, and unparseable attributes are returned as warning diagnostics so callers can surface them without mutating content.

string

PHP or HTML pattern source containing serialized block comments.

ValidateBlockPatternContentNestingOptions

Pattern filename, nesting contract, and known block-name policy.

ValidateBlockPatternContentNestingResult

Parsed block tree plus split warning/error diagnostics.