@speclynx/apidom-ns-json-schema-draft-4 4.0.3 → 4.0.5
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/CHANGELOG.md +11 -0
- package/dist/apidom-ns-json-schema-draft-4.browser.js +35 -11
- package/dist/apidom-ns-json-schema-draft-4.browser.min.js +1 -1
- package/package.json +7 -6
- package/src/namespace.cjs +2 -2
- package/src/namespace.mjs +2 -2
- package/src/refractor/index.cjs +3 -3
- package/src/refractor/index.mjs +3 -3
- package/src/refractor/specification.cjs +2 -2
- package/src/refractor/specification.mjs +2 -2
- package/src/elements/JSONReference.ts +0 -33
- package/src/elements/JSONSchema.ts +0 -391
- package/src/elements/LinkDescription.ts +0 -85
- package/src/elements/Media.ts +0 -35
- package/src/index.ts +0 -142
- package/src/media-types.ts +0 -40
- package/src/namespace.ts +0 -24
- package/src/predicates.ts +0 -28
- package/src/refractor/index.ts +0 -110
- package/src/refractor/inspect.ts +0 -61
- package/src/refractor/plugins/replace-empty-element.ts +0 -233
- package/src/refractor/predicates.ts +0 -17
- package/src/refractor/specification.ts +0 -134
- package/src/refractor/toolbox.ts +0 -24
- package/src/refractor/visitors/FallbackVisitor.ts +0 -25
- package/src/refractor/visitors/SpecificationVisitor.ts +0 -82
- package/src/refractor/visitors/Visitor.ts +0 -49
- package/src/refractor/visitors/generics/AlternatingVisitor.ts +0 -45
- package/src/refractor/visitors/generics/FixedFieldsVisitor.ts +0 -79
- package/src/refractor/visitors/generics/MapVisitor.ts +0 -25
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.ts +0 -76
- package/src/refractor/visitors/json-schema/AllOfVisitor.ts +0 -44
- package/src/refractor/visitors/json-schema/AnyOfVisitor.ts +0 -44
- package/src/refractor/visitors/json-schema/DefinitionsVisitor.ts +0 -36
- package/src/refractor/visitors/json-schema/DependenciesVisitor.ts +0 -36
- package/src/refractor/visitors/json-schema/EnumVisitor.ts +0 -20
- package/src/refractor/visitors/json-schema/ItemsVisitor.ts +0 -52
- package/src/refractor/visitors/json-schema/JSONSchemaOrJSONReferenceVisitor.ts +0 -21
- package/src/refractor/visitors/json-schema/LinksVisitor.ts +0 -43
- package/src/refractor/visitors/json-schema/OneOfVisitor.ts +0 -44
- package/src/refractor/visitors/json-schema/ParentSchemaAwareVisitor.ts +0 -21
- package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.ts +0 -36
- package/src/refractor/visitors/json-schema/PropertiesVisitor.ts +0 -36
- package/src/refractor/visitors/json-schema/RequiredVisitor.ts +0 -20
- package/src/refractor/visitors/json-schema/TypeVisitor.ts +0 -25
- package/src/refractor/visitors/json-schema/bases.ts +0 -70
- package/src/refractor/visitors/json-schema/index.ts +0 -85
- package/src/refractor/visitors/json-schema/json-reference/$RefVisitor.ts +0 -20
- package/src/refractor/visitors/json-schema/json-reference/index.ts +0 -41
- package/src/refractor/visitors/json-schema/link-description/index.ts +0 -30
- package/src/refractor/visitors/json-schema/media/index.ts +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.5](https://github.com/speclynx/apidom/compare/v4.0.4...v4.0.5) (2026-03-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @speclynx/apidom-ns-json-schema-draft-4
|
|
9
|
+
|
|
10
|
+
## [4.0.4](https://github.com/speclynx/apidom/compare/v4.0.3...v4.0.4) (2026-03-12)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- add consistent JSON Schema element naming ([#156](https://github.com/speclynx/apidom/issues/156)) ([834783e](https://github.com/speclynx/apidom/commit/834783e3bf1de42f07236079d21c54cdbdfd4e3f))
|
|
15
|
+
- **release:** override minimatch 10.2.3 to fix glob pattern regression in lerna publish ([#157](https://github.com/speclynx/apidom/issues/157)) ([c2d65a0](https://github.com/speclynx/apidom/commit/c2d65a06a2187e8563a9dc9db74ba27255450e0b)), closes [lerna/lerna#4305](https://github.com/lerna/lerna/issues/4305) [isaacs/minimatch#284](https://github.com/isaacs/minimatch/issues/284)
|
|
16
|
+
|
|
6
17
|
## [4.0.3](https://github.com/speclynx/apidom/compare/v4.0.2...v4.0.3) (2026-03-11)
|
|
7
18
|
|
|
8
19
|
### Bug Fixes
|
|
@@ -526,8 +526,8 @@ const jsonSchemaDraft4 = {
|
|
|
526
526
|
const {
|
|
527
527
|
base
|
|
528
528
|
} = options;
|
|
529
|
-
base.register('
|
|
530
|
-
base.register('
|
|
529
|
+
base.register('JSONSchemaDraft4', _elements_JSONSchema_ts__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
530
|
+
base.register('JSONReference', _elements_JSONReference_ts__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
531
531
|
base.register('media', _elements_Media_ts__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
532
532
|
base.register('linkDescription', _elements_LinkDescription_ts__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
533
533
|
return base;
|
|
@@ -615,7 +615,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
615
615
|
* @public
|
|
616
616
|
*/
|
|
617
617
|
const refract = (value, {
|
|
618
|
-
element = '
|
|
618
|
+
element = 'JSONSchemaDraft4',
|
|
619
619
|
plugins = [],
|
|
620
620
|
specificationObj = _specification_ts__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
621
621
|
consume = false
|
|
@@ -654,7 +654,7 @@ const refract = (value, {
|
|
|
654
654
|
*/
|
|
655
655
|
const refractJSONSchema = (value, options = {}) => refract(value, {
|
|
656
656
|
...options,
|
|
657
|
-
element: '
|
|
657
|
+
element: 'JSONSchemaDraft4'
|
|
658
658
|
});
|
|
659
659
|
|
|
660
660
|
/**
|
|
@@ -663,7 +663,7 @@ const refractJSONSchema = (value, options = {}) => refract(value, {
|
|
|
663
663
|
*/
|
|
664
664
|
const refractJSONReference = (value, options = {}) => refract(value, {
|
|
665
665
|
...options,
|
|
666
|
-
element: '
|
|
666
|
+
element: 'JSONReference'
|
|
667
667
|
});
|
|
668
668
|
|
|
669
669
|
/**
|
|
@@ -998,7 +998,7 @@ const specification = {
|
|
|
998
998
|
document: {
|
|
999
999
|
objects: {
|
|
1000
1000
|
JSONSchema: {
|
|
1001
|
-
element: '
|
|
1001
|
+
element: 'JSONSchemaDraft4',
|
|
1002
1002
|
$visitor: _visitors_json_schema_index_ts__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
1003
1003
|
fixedFields: {
|
|
1004
1004
|
// core vocabulary
|
|
@@ -1102,7 +1102,7 @@ const specification = {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
},
|
|
1104
1104
|
JSONReference: {
|
|
1105
|
-
element: '
|
|
1105
|
+
element: 'JSONReference',
|
|
1106
1106
|
$visitor: _visitors_json_schema_json_reference_index_ts__WEBPACK_IMPORTED_MODULE_14__["default"],
|
|
1107
1107
|
fixedFields: {
|
|
1108
1108
|
$ref: _visitors_json_schema_json_reference_$RefVisitor_ts__WEBPACK_IMPORTED_MODULE_15__["default"]
|
|
@@ -22389,9 +22389,9 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
22389
22389
|
}
|
|
22390
22390
|
|
|
22391
22391
|
// Handle path-based control flow
|
|
22392
|
+
// Note: no break here — other merged visitors must still process this node
|
|
22392
22393
|
if (proxyPath.shouldStop) {
|
|
22393
22394
|
skipping[i] = breakSymbol;
|
|
22394
|
-
break;
|
|
22395
22395
|
}
|
|
22396
22396
|
if (proxyPath.shouldSkip) {
|
|
22397
22397
|
skipping[i] = currentNode;
|
|
@@ -22422,6 +22422,11 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
22422
22422
|
}
|
|
22423
22423
|
}
|
|
22424
22424
|
}
|
|
22425
|
+
|
|
22426
|
+
// stop traversal only when all visitors have stopped
|
|
22427
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
22428
|
+
path.stop();
|
|
22429
|
+
}
|
|
22425
22430
|
if (hasChanged) {
|
|
22426
22431
|
path.replaceWith(currentNode);
|
|
22427
22432
|
return currentNode;
|
|
@@ -22447,9 +22452,9 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
22447
22452
|
}
|
|
22448
22453
|
|
|
22449
22454
|
// Handle path-based control flow
|
|
22455
|
+
// Note: no break here — other merged visitors must still process this node
|
|
22450
22456
|
if (proxyPath.shouldStop) {
|
|
22451
22457
|
skipping[i] = breakSymbol;
|
|
22452
|
-
break;
|
|
22453
22458
|
}
|
|
22454
22459
|
if (proxyPath.removed) {
|
|
22455
22460
|
path.remove();
|
|
@@ -22469,6 +22474,11 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
22469
22474
|
skipping[i] = internalSkipSymbol;
|
|
22470
22475
|
}
|
|
22471
22476
|
}
|
|
22477
|
+
|
|
22478
|
+
// stop traversal only when all visitors have stopped
|
|
22479
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
22480
|
+
path.stop();
|
|
22481
|
+
}
|
|
22472
22482
|
return undefined;
|
|
22473
22483
|
}
|
|
22474
22484
|
};
|
|
@@ -22497,9 +22507,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
22497
22507
|
if (typeof visitFn === 'function') {
|
|
22498
22508
|
const proxyPath = createPathProxy(path, currentNode);
|
|
22499
22509
|
const result = await visitFn.call(visitors[i], proxyPath);
|
|
22510
|
+
|
|
22511
|
+
// Handle path-based control flow
|
|
22512
|
+
// Note: no break here — other merged visitors must still process this node
|
|
22500
22513
|
if (proxyPath.shouldStop) {
|
|
22501
22514
|
skipping[i] = breakSymbol;
|
|
22502
|
-
break;
|
|
22503
22515
|
}
|
|
22504
22516
|
if (proxyPath.shouldSkip) {
|
|
22505
22517
|
skipping[i] = currentNode;
|
|
@@ -22529,6 +22541,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
22529
22541
|
}
|
|
22530
22542
|
}
|
|
22531
22543
|
}
|
|
22544
|
+
|
|
22545
|
+
// stop traversal only when all visitors have stopped
|
|
22546
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
22547
|
+
path.stop();
|
|
22548
|
+
}
|
|
22532
22549
|
if (hasChanged) {
|
|
22533
22550
|
path.replaceWith(currentNode);
|
|
22534
22551
|
return currentNode;
|
|
@@ -22543,9 +22560,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
22543
22560
|
if (typeof visitFn === 'function') {
|
|
22544
22561
|
const proxyPath = createPathProxy(path, currentNode);
|
|
22545
22562
|
const result = await visitFn.call(visitors[i], proxyPath);
|
|
22563
|
+
|
|
22564
|
+
// Handle path-based control flow
|
|
22565
|
+
// Note: no break here — other merged visitors must still process this node
|
|
22546
22566
|
if (proxyPath.shouldStop) {
|
|
22547
22567
|
skipping[i] = breakSymbol;
|
|
22548
|
-
break;
|
|
22549
22568
|
}
|
|
22550
22569
|
if (proxyPath.removed) {
|
|
22551
22570
|
path.remove();
|
|
@@ -22564,6 +22583,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
22564
22583
|
skipping[i] = internalSkipSymbol;
|
|
22565
22584
|
}
|
|
22566
22585
|
}
|
|
22586
|
+
|
|
22587
|
+
// stop traversal only when all visitors have stopped
|
|
22588
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
22589
|
+
path.stop();
|
|
22590
|
+
}
|
|
22567
22591
|
return undefined;
|
|
22568
22592
|
}
|
|
22569
22593
|
};
|