diff options
Diffstat (limited to 'ext/bg/js/json-schema.js')
-rw-r--r-- | ext/bg/js/json-schema.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/json-schema.js b/ext/bg/js/json-schema.js index 1be78fd2..cdfd339f 100644 --- a/ext/bg/js/json-schema.js +++ b/ext/bg/js/json-schema.js @@ -149,7 +149,7 @@ class JsonSchemaValidator { getValidValueOrDefault(schema, value) { let type = this._getValueType(value); const schemaType = schema.type; - if (!this._isValueTypeAny(value, type, schemaType)) { + if (typeof value === 'undefined' || !this._isValueTypeAny(value, type, schemaType)) { let assignDefault = true; const schemaDefault = schema.default; |