@speclynx/apidom-ns-json-schema-draft-6 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-6.browser.js +35 -11
- package/dist/apidom-ns-json-schema-draft-6.browser.min.js +1 -1
- package/package.json +9 -8
- package/src/namespace.cjs +2 -2
- package/src/namespace.mjs +2 -2
- package/src/refractor/index.cjs +2 -2
- package/src/refractor/index.mjs +2 -2
- package/src/refractor/specification.cjs +1 -1
- package/src/refractor/specification.mjs +1 -1
- package/src/elements/JSONSchema.ts +0 -158
- package/src/elements/LinkDescription.ts +0 -100
- package/src/index.ts +0 -85
- package/src/media-types.ts +0 -40
- package/src/namespace.ts +0 -23
- package/src/predicates.ts +0 -25
- package/src/refractor/index.ts +0 -90
- package/src/refractor/inspect.ts +0 -51
- package/src/refractor/plugins/replace-empty-element.ts +0 -243
- package/src/refractor/specification.ts +0 -58
- package/src/refractor/toolbox.ts +0 -23
- package/src/refractor/visitors/json-schema/ExamplesVisitor.ts +0 -19
- package/src/refractor/visitors/json-schema/ItemsVisitor.ts +0 -21
- package/src/refractor/visitors/json-schema/index.ts +0 -38
- package/src/refractor/visitors/json-schema/link-description/index.ts +0 -23
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-6
|
|
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
|
|
@@ -278,8 +278,8 @@ const jsonSchemaDraft6 = {
|
|
|
278
278
|
const {
|
|
279
279
|
base
|
|
280
280
|
} = options;
|
|
281
|
-
base.register('
|
|
282
|
-
base.register('
|
|
281
|
+
base.register('JSONSchemaDraft6', _elements_JSONSchema_ts__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
282
|
+
base.register('JSONReference', _speclynx_apidom_ns_json_schema_draft_4__WEBPACK_IMPORTED_MODULE_0__.JSONReferenceElement);
|
|
283
283
|
base.register('media', _speclynx_apidom_ns_json_schema_draft_4__WEBPACK_IMPORTED_MODULE_0__.MediaElement);
|
|
284
284
|
base.register('linkDescription', _elements_LinkDescription_ts__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
285
285
|
return base;
|
|
@@ -364,7 +364,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
364
364
|
* @public
|
|
365
365
|
*/
|
|
366
366
|
const refract = (value, {
|
|
367
|
-
element = '
|
|
367
|
+
element = 'JSONSchemaDraft6',
|
|
368
368
|
plugins = [],
|
|
369
369
|
specificationObj = _specification_ts__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
370
370
|
consume = false
|
|
@@ -403,7 +403,7 @@ const refract = (value, {
|
|
|
403
403
|
*/
|
|
404
404
|
const refractJSONSchema = (value, options = {}) => refract(value, {
|
|
405
405
|
...options,
|
|
406
|
-
element: '
|
|
406
|
+
element: 'JSONSchemaDraft6'
|
|
407
407
|
});
|
|
408
408
|
|
|
409
409
|
/**
|
|
@@ -677,7 +677,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
677
677
|
|
|
678
678
|
const specification = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
679
679
|
// JSON Schema object modifications
|
|
680
|
-
(0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', 'document', 'objects', 'JSONSchema', 'element'], '
|
|
680
|
+
(0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', 'document', 'objects', 'JSONSchema', 'element'], 'JSONSchemaDraft6'), (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', 'document', 'objects', 'JSONSchema', '$visitor'], _visitors_json_schema_index_ts__WEBPACK_IMPORTED_MODULE_4__["default"]), (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'id']), (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', '$id'], {
|
|
681
681
|
$ref: '#/visitors/value'
|
|
682
682
|
}), (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'contains'], {
|
|
683
683
|
$visitor: _speclynx_apidom_ns_json_schema_draft_4__WEBPACK_IMPORTED_MODULE_3__["default"].visitors.JSONSchemaOrJSONReferenceVisitor,
|
|
@@ -20657,7 +20657,7 @@ const specification = {
|
|
|
20657
20657
|
document: {
|
|
20658
20658
|
objects: {
|
|
20659
20659
|
JSONSchema: {
|
|
20660
|
-
element: '
|
|
20660
|
+
element: 'JSONSchemaDraft4',
|
|
20661
20661
|
$visitor: _visitors_json_schema_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
20662
20662
|
fixedFields: {
|
|
20663
20663
|
// core vocabulary
|
|
@@ -20761,7 +20761,7 @@ const specification = {
|
|
|
20761
20761
|
}
|
|
20762
20762
|
},
|
|
20763
20763
|
JSONReference: {
|
|
20764
|
-
element: '
|
|
20764
|
+
element: 'JSONReference',
|
|
20765
20765
|
$visitor: _visitors_json_schema_json_reference_index_mjs__WEBPACK_IMPORTED_MODULE_14__["default"],
|
|
20766
20766
|
fixedFields: {
|
|
20767
20767
|
$ref: _visitors_json_schema_json_reference_$RefVisitor_mjs__WEBPACK_IMPORTED_MODULE_15__["default"]
|
|
@@ -23091,9 +23091,9 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
23091
23091
|
}
|
|
23092
23092
|
|
|
23093
23093
|
// Handle path-based control flow
|
|
23094
|
+
// Note: no break here — other merged visitors must still process this node
|
|
23094
23095
|
if (proxyPath.shouldStop) {
|
|
23095
23096
|
skipping[i] = breakSymbol;
|
|
23096
|
-
break;
|
|
23097
23097
|
}
|
|
23098
23098
|
if (proxyPath.shouldSkip) {
|
|
23099
23099
|
skipping[i] = currentNode;
|
|
@@ -23124,6 +23124,11 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
23124
23124
|
}
|
|
23125
23125
|
}
|
|
23126
23126
|
}
|
|
23127
|
+
|
|
23128
|
+
// stop traversal only when all visitors have stopped
|
|
23129
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
23130
|
+
path.stop();
|
|
23131
|
+
}
|
|
23127
23132
|
if (hasChanged) {
|
|
23128
23133
|
path.replaceWith(currentNode);
|
|
23129
23134
|
return currentNode;
|
|
@@ -23149,9 +23154,9 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
23149
23154
|
}
|
|
23150
23155
|
|
|
23151
23156
|
// Handle path-based control flow
|
|
23157
|
+
// Note: no break here — other merged visitors must still process this node
|
|
23152
23158
|
if (proxyPath.shouldStop) {
|
|
23153
23159
|
skipping[i] = breakSymbol;
|
|
23154
|
-
break;
|
|
23155
23160
|
}
|
|
23156
23161
|
if (proxyPath.removed) {
|
|
23157
23162
|
path.remove();
|
|
@@ -23171,6 +23176,11 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
23171
23176
|
skipping[i] = internalSkipSymbol;
|
|
23172
23177
|
}
|
|
23173
23178
|
}
|
|
23179
|
+
|
|
23180
|
+
// stop traversal only when all visitors have stopped
|
|
23181
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
23182
|
+
path.stop();
|
|
23183
|
+
}
|
|
23174
23184
|
return undefined;
|
|
23175
23185
|
}
|
|
23176
23186
|
};
|
|
@@ -23199,9 +23209,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
23199
23209
|
if (typeof visitFn === 'function') {
|
|
23200
23210
|
const proxyPath = createPathProxy(path, currentNode);
|
|
23201
23211
|
const result = await visitFn.call(visitors[i], proxyPath);
|
|
23212
|
+
|
|
23213
|
+
// Handle path-based control flow
|
|
23214
|
+
// Note: no break here — other merged visitors must still process this node
|
|
23202
23215
|
if (proxyPath.shouldStop) {
|
|
23203
23216
|
skipping[i] = breakSymbol;
|
|
23204
|
-
break;
|
|
23205
23217
|
}
|
|
23206
23218
|
if (proxyPath.shouldSkip) {
|
|
23207
23219
|
skipping[i] = currentNode;
|
|
@@ -23231,6 +23243,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
23231
23243
|
}
|
|
23232
23244
|
}
|
|
23233
23245
|
}
|
|
23246
|
+
|
|
23247
|
+
// stop traversal only when all visitors have stopped
|
|
23248
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
23249
|
+
path.stop();
|
|
23250
|
+
}
|
|
23234
23251
|
if (hasChanged) {
|
|
23235
23252
|
path.replaceWith(currentNode);
|
|
23236
23253
|
return currentNode;
|
|
@@ -23245,9 +23262,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
23245
23262
|
if (typeof visitFn === 'function') {
|
|
23246
23263
|
const proxyPath = createPathProxy(path, currentNode);
|
|
23247
23264
|
const result = await visitFn.call(visitors[i], proxyPath);
|
|
23265
|
+
|
|
23266
|
+
// Handle path-based control flow
|
|
23267
|
+
// Note: no break here — other merged visitors must still process this node
|
|
23248
23268
|
if (proxyPath.shouldStop) {
|
|
23249
23269
|
skipping[i] = breakSymbol;
|
|
23250
|
-
break;
|
|
23251
23270
|
}
|
|
23252
23271
|
if (proxyPath.removed) {
|
|
23253
23272
|
path.remove();
|
|
@@ -23266,6 +23285,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
23266
23285
|
skipping[i] = internalSkipSymbol;
|
|
23267
23286
|
}
|
|
23268
23287
|
}
|
|
23288
|
+
|
|
23289
|
+
// stop traversal only when all visitors have stopped
|
|
23290
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
23291
|
+
path.stop();
|
|
23292
|
+
}
|
|
23269
23293
|
return undefined;
|
|
23270
23294
|
}
|
|
23271
23295
|
};
|