From 7f67977621bae27fc94fffc874362a5300667d24 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 16 Nov 2024 07:44:30 -0400 Subject: validators: validateReference: fix multiple type validation Oooooooooooops --- src/data/validators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(', ') + -- cgit 1.3.0-6-gf8a5