@embeddable.com/sdk-react 2.2.12 → 2.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -577,10 +577,13 @@ const validateVariableEvents = (meta) => {
577
577
  errors.push(`${path}: property "${event.property}" is not defined`);
578
578
  return;
579
579
  }
580
+ const path = formatErrorPath(["variables", idx]);
580
581
  if (definedProperty.type !== variableConfig.type) {
581
- const path = formatErrorPath(["variables", idx]);
582
582
  errors.push(`${path}: the type of the variable "${variableConfig.name}" and the type of the property "${event.property}" do not match`);
583
583
  }
584
+ if (Boolean(definedProperty.array) !== Boolean(variableConfig.array)) {
585
+ errors.push(`${path}: the array of the variable "${variableConfig.name}" and the array of the property "${event.property}" do not match`);
586
+ }
584
587
  });
585
588
  }
586
589
  });