@openactive/data-model-validator
Version:
A library to allow a developer to validate a JSON document against the OpenActive Modelling Opportunity Specification
26 lines (19 loc) • 408 B
JavaScript
const Rule = require('./rule');
const RawRule = class extends Rule {
async validate(json) {
return this.validateRaw(json);
}
async validateRaw(/* json */) {
throw Error('Raw JSON validation rule not implemented');
}
isModelTargeted() {
return false;
}
isFieldTargeted() {
return false;
}
isValidationModeTargeted() {
return false;
}
};
module.exports = RawRule;