Type needed for the JSON Schema validation interface.

One of the two values are null, depending on the validation result. (That is how Ajv works…)

interface ValidationResults {
    error: ValidationError[];
    vocab: RawVocab;
}

Properties

Properties

vocab: RawVocab

The YAML content converted into a JSON object; ready to be converted further. If the content is valid, the error array is empty. Otherwise, the vocab field is null, and the validation error(s) are returned.