@openactive/data-model-validator
Version:
A library to allow a developer to validate a JSON document against the OpenActive Modelling Opportunity Specification
36 lines (27 loc) • 658 B
JavaScript
const OptionsHelper = class {
constructor(options) {
this.options = options || {};
}
get loadRemoteJson() {
return this.options.loadRemoteJson || false;
}
get remoteJsonCachePath() {
return this.options.remoteJsonCachePath;
}
get remoteJsonCacheTimeToLive() {
return this.options.remoteJsonCacheTimeToLive || 3600;
}
get rpdeItemLimit() {
return this.options.rpdeItemLimit;
}
get type() {
return this.options.type;
}
get version() {
return this.options.version || 'latest';
}
get validationMode() {
return this.options.validationMode || 'RPDEFeed';
}
};
module.exports = OptionsHelper;