diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-10 23:12:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 04:12:01 +0000 |
commit | 765f1ede668f70e3af7717bf4d5f05dbf009c7f8 (patch) | |
tree | e73f481c93f8bbaa42f7c8216190fb1cb4621301 /ext/js/data/json-schema.js | |
parent | 805cf9cb3ea744a6d7c0a5da27fc9ef4e6f08626 (diff) |
Eslint rule updates (#665)
* Padding newline rules
* Update rules
* Update rules
* Update rules
* Updates
* Update object quotes
* Merge similar ts and js rules
* Change export spacing rules
* Move typescript-eslint rules
* Spacing
* Actually save and commit changes
Diffstat (limited to 'ext/js/data/json-schema.js')
-rw-r--r-- | ext/js/data/json-schema.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/data/json-schema.js b/ext/js/data/json-schema.js index 9b7ea011..3342e387 100644 --- a/ext/js/data/json-schema.js +++ b/ext/js/data/json-schema.js @@ -805,7 +805,7 @@ export class JsonSchema { const {type: schemaType, const: schemaConst, enum: schemaEnum} = schema; const type = this._getValueType(value); if (!this._isValueTypeAny(value, type, schemaType)) { - throw this._createError(`Value type ${type} does not match schema type ${schemaType}`); + throw this._createError(`Value type ${type} does not match schema type ${Array.isArray(schemaType) ? schemaType.join(',') : schemaType}`); } if (typeof schemaConst !== 'undefined' && !this._valuesAreEqual(value, schemaConst)) { |