Skip to main content

Function: validateManifest()

validateManifest(json): ManifestValidationResult

Defined in: Extensions/ExtensionManifestValidator.ts:1396

Validate an unknown JSON value (typically the parsed extension.json) against the manifest schema and the cross-cutting rules from §"Manifest validation rules".

On success, returns a typed manifest with all contribution IDs auto-prefixed to ext.<id>.. On failure, returns the full list of errors so the caller can render them in one go rather than fixing them one by one.

Parameters

json

unknown

Returns

ManifestValidationResult