@formspec/build 0.1.0-alpha.43 → 0.1.0-alpha.44

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/dist/browser.js CHANGED
@@ -1423,7 +1423,7 @@ function generateCustomType(type, ctx) {
1423
1423
  }
1424
1424
  return registration.toJsonSchema(type.payload, ctx.vendorPrefix);
1425
1425
  }
1426
- var JSON_SCHEMA_STRUCTURAL_KEYWORDS = /* @__PURE__ */ new Set([
1426
+ var VOCABULARY_MODE_BLOCKED_KEYWORDS = /* @__PURE__ */ new Set([
1427
1427
  "$schema",
1428
1428
  "$ref",
1429
1429
  "$defs",
@@ -1494,7 +1494,7 @@ function applyCustomConstraint(schema, constraint, ctx) {
1494
1494
  if (registration.emitsVocabularyKeywords) {
1495
1495
  const target = schema;
1496
1496
  for (const [key, value] of Object.entries(extensionSchema)) {
1497
- if (JSON_SCHEMA_STRUCTURAL_KEYWORDS.has(key)) {
1497
+ if (VOCABULARY_MODE_BLOCKED_KEYWORDS.has(key)) {
1498
1498
  throw new Error(
1499
1499
  `Custom constraint "${constraint.constraintId}" with emitsVocabularyKeywords must not overwrite standard JSON Schema keyword "${key}"`
1500
1500
  );