diff options
-rw-r--r-- | src/data/validators.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/validators.js b/src/data/validators.js index 2c99be0c..d2d1aa25 100644 --- a/src/data/validators.js +++ b/src/data/validators.js @@ -804,7 +804,7 @@ export function validateReference(type) { if (typePart) { if (Array.isArray(type)) { - if (!typePart.includes(type)) { + if (!type.includes(typePart)) { throw new TypeError( `Expected ref to begin with one of ` + type.map(type => `"${type}:"`).join(', ') + |