validate
Check a DDO against the DDO v5 schema, locally.
Usage
const { , } = await ()
errors: { providedBy: [ 'Less than 1 values' ] }Returns
- Type:
ValidationResult
{ valid: boolean, errors: Record<string, string[]> } — errors keyed by field name.
Parameters
ddo
- Type:
unknown
The document to check.