aboutsummaryrefslogtreecommitdiff
path: root/src/shared/settings/validate.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/settings/validate.js')
-rw-r--r--src/shared/settings/validate.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/shared/settings/validate.js b/src/shared/settings/validate.js
index c761cee..236488d 100644
--- a/src/shared/settings/validate.js
+++ b/src/shared/settings/validate.js
@@ -143,7 +143,17 @@ var validate = (function() {
if (valid2) {
var data2 = data1.engines;
if (data2 === undefined) {
- valid2 = true;
+ valid2 = false;
+ validate.errors = [{
+ keyword: 'required',
+ dataPath: (dataPath || '') + '.search',
+ schemaPath: '#/properties/search/required',
+ params: {
+ missingProperty: 'engines'
+ },
+ message: 'should have required property \'engines\''
+ }];
+ return false;
} else {
var errs_2 = errors;
if ((data2 && typeof data2 === "object" && !Array.isArray(data2))) {
@@ -512,7 +522,7 @@ validate.schema = {
}
}
},
- "required": ["default"]
+ "required": ["default", "engines"]
},
"properties": {
"type": "object",