Skip to main content

Function: validateManifest()

validateManifest(manifest): ManifestValidationResult

Defined in: utils/validation.ts:38

Validate a plugin manifest object.

Checks that the manifest has all required fields with correct types and formats. Returns all validation errors at once (not just the first one) to help plugin authors fix multiple issues in a single pass.

Parameters​

ParameterTypeDescription
manifestunknownThe manifest object to validate (typically from package.json omniscribe field)

Returns​

ManifestValidationResult

Validation result with valid flag and array of error messages

Example​

const result = validateManifest(pkg.omniscribe);
if (!result.valid) {
console.error('Invalid plugin manifest:', result.errors);
}