Skip to content
docsv0.24.0

MetadataParityValidator

D5 parity watchdog: with the attribute as the single metadata authority, a milpa.json that drifts from it on a GRAPH field (name, version, type, author, provides, requires, suggests) is flagged before it can mislead anyone. The `site` field is deliberately excluded: the canonical generator never emits a homepage, so every manifest reads '' there by construction.

MetadataParityValidator::validate()

public function validate(string $manifestPath, string $pluginClass): Milpa\DevTools\Validators\MetadataParityResult

Compare one manifest against its plugin class attribute.

Parameters

Parameters of validate()
NameTypeDescription
$manifestPathstring
$pluginClassstring