@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/analyzer/class-analyzer.d.ts.map +1 -1
- package/dist/browser.cjs +2 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs +35 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +35 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +34 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -3
- package/dist/index.js.map +1 -1
- package/dist/internals.cjs +34 -3
- package/dist/internals.cjs.map +1 -1
- package/dist/internals.js +34 -3
- package/dist/internals.js.map +1 -1
- package/package.json +5 -5
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
|
|
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 (
|
|
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
|
);
|