@speclynx/apidom-ns-openapi-2 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 +10 -0
- package/dist/apidom-ns-openapi-2.browser.js +35 -11
- package/dist/apidom-ns-openapi-2.browser.min.js +1 -1
- package/package.json +9 -8
- package/src/elements/Contact.ts +0 -42
- package/src/elements/Definitions.ts +0 -13
- package/src/elements/Example.ts +0 -13
- package/src/elements/ExternalDocumentation.ts +0 -34
- package/src/elements/Header.ts +0 -261
- package/src/elements/Headers.ts +0 -13
- package/src/elements/Info.ts +0 -70
- package/src/elements/Items.ts +0 -264
- package/src/elements/License.ts +0 -34
- package/src/elements/Operation.ts +0 -106
- package/src/elements/Parameter.ts +0 -326
- package/src/elements/ParametersDefinitions.ts +0 -13
- package/src/elements/PathItem.ts +0 -93
- package/src/elements/Paths.ts +0 -13
- package/src/elements/Reference.ts +0 -27
- package/src/elements/Response.ts +0 -54
- package/src/elements/Responses.ts +0 -24
- package/src/elements/ResponsesDefinitions.ts +0 -13
- package/src/elements/Schema.ts +0 -204
- package/src/elements/Scopes.ts +0 -13
- package/src/elements/SecurityDefinitions.ts +0 -13
- package/src/elements/SecurityRequirement.ts +0 -13
- package/src/elements/SecurityScheme.ts +0 -83
- package/src/elements/Swagger.ts +0 -149
- package/src/elements/SwaggerVersion.ts +0 -15
- package/src/elements/Tag.ts +0 -44
- package/src/elements/Xml.ts +0 -59
- package/src/elements/nces/OperationConsumes.ts +0 -15
- package/src/elements/nces/OperationParameters.ts +0 -16
- package/src/elements/nces/OperationProduces.ts +0 -15
- package/src/elements/nces/OperationSchemes.ts +0 -15
- package/src/elements/nces/OperationSecurity.ts +0 -16
- package/src/elements/nces/OperationTags.ts +0 -16
- package/src/elements/nces/PathItemParameters.ts +0 -16
- package/src/elements/nces/SwaggerConsumes.ts +0 -15
- package/src/elements/nces/SwaggerProduces.ts +0 -15
- package/src/elements/nces/SwaggerSchemes.ts +0 -15
- package/src/elements/nces/SwaggerSecurity.ts +0 -16
- package/src/elements/nces/SwaggerTags.ts +0 -15
- package/src/index.ts +0 -368
- package/src/media-types.ts +0 -42
- package/src/namespace.ts +0 -70
- package/src/predicates.ts +0 -194
- package/src/refractor/index.ts +0 -330
- package/src/refractor/inspect.ts +0 -181
- package/src/refractor/plugins/replace-empty-element.ts +0 -389
- package/src/refractor/predicates.ts +0 -29
- package/src/refractor/specification.ts +0 -444
- package/src/refractor/toolbox.ts +0 -24
- package/src/refractor/visitors/FallbackVisitor.ts +0 -25
- package/src/refractor/visitors/SpecificationExtensionVisitor.ts +0 -22
- package/src/refractor/visitors/SpecificationVisitor.ts +0 -83
- package/src/refractor/visitors/Visitor.ts +0 -47
- package/src/refractor/visitors/generics/AlternatingVisitor.ts +0 -45
- package/src/refractor/visitors/generics/FixedFieldsVisitor.ts +0 -109
- package/src/refractor/visitors/generics/MapVisitor.ts +0 -25
- package/src/refractor/visitors/generics/MixedFieldsVisitor.ts +0 -77
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.ts +0 -99
- package/src/refractor/visitors/open-api-2/BasePathVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/HostVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-2/ProducesVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/SchemesVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/SecurityVisitor.ts +0 -34
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/TagsVisitor.ts +0 -34
- package/src/refractor/visitors/open-api-2/bases.ts +0 -82
- package/src/refractor/visitors/open-api-2/contact/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/definitions/index.ts +0 -48
- package/src/refractor/visitors/open-api-2/example/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/external-documentation/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/header/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/headers/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/index.ts +0 -28
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.ts +0 -21
- package/src/refractor/visitors/open-api-2/info/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/items/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/license/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.ts +0 -44
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.ts +0 -34
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.ts +0 -29
- package/src/refractor/visitors/open-api-2/operation/index.ts +0 -24
- package/src/refractor/visitors/open-api-2/parameter/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.ts +0 -24
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.ts +0 -44
- package/src/refractor/visitors/open-api-2/path-item/index.ts +0 -48
- package/src/refractor/visitors/open-api-2/paths/index.ts +0 -48
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.ts +0 -20
- package/src/refractor/visitors/open-api-2/reference/index.ts +0 -38
- package/src/refractor/visitors/open-api-2/response/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.ts +0 -36
- package/src/refractor/visitors/open-api-2/responses/index.ts +0 -64
- package/src/refractor/visitors/open-api-2/responses-definitions/index.ts +0 -24
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.ts +0 -35
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.ts +0 -38
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.ts +0 -35
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.ts +0 -37
- package/src/refractor/visitors/open-api-2/schema/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/scopes/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/security-definitions/index.ts +0 -24
- package/src/refractor/visitors/open-api-2/security-requirement/index.ts +0 -24
- package/src/refractor/visitors/open-api-2/security-scheme/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/tag/index.ts +0 -27
- package/src/refractor/visitors/open-api-2/xml/index.ts +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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-openapi-2
|
|
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
|
+
- **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)
|
|
15
|
+
|
|
6
16
|
## [4.0.3](https://github.com/speclynx/apidom/compare/v4.0.2...v4.0.3) (2026-03-11)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
|
@@ -25798,8 +25798,8 @@ const jsonSchemaDraft4 = {
|
|
|
25798
25798
|
const {
|
|
25799
25799
|
base
|
|
25800
25800
|
} = options;
|
|
25801
|
-
base.register('
|
|
25802
|
-
base.register('
|
|
25801
|
+
base.register('JSONSchemaDraft4', _elements_JSONSchema_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
25802
|
+
base.register('JSONReference', _elements_JSONReference_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
25803
25803
|
base.register('media', _elements_Media_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
25804
25804
|
base.register('linkDescription', _elements_LinkDescription_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
25805
25805
|
return base;
|
|
@@ -25883,7 +25883,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25883
25883
|
* @public
|
|
25884
25884
|
*/
|
|
25885
25885
|
const refract = (value, {
|
|
25886
|
-
element = '
|
|
25886
|
+
element = 'JSONSchemaDraft4',
|
|
25887
25887
|
plugins = [],
|
|
25888
25888
|
specificationObj = _specification_mjs__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
25889
25889
|
consume = false
|
|
@@ -25922,7 +25922,7 @@ const refract = (value, {
|
|
|
25922
25922
|
*/
|
|
25923
25923
|
const refractJSONSchema = (value, options = {}) => refract(value, {
|
|
25924
25924
|
...options,
|
|
25925
|
-
element: '
|
|
25925
|
+
element: 'JSONSchemaDraft4'
|
|
25926
25926
|
});
|
|
25927
25927
|
|
|
25928
25928
|
/**
|
|
@@ -25931,7 +25931,7 @@ const refractJSONSchema = (value, options = {}) => refract(value, {
|
|
|
25931
25931
|
*/
|
|
25932
25932
|
const refractJSONReference = (value, options = {}) => refract(value, {
|
|
25933
25933
|
...options,
|
|
25934
|
-
element: '
|
|
25934
|
+
element: 'JSONReference'
|
|
25935
25935
|
});
|
|
25936
25936
|
|
|
25937
25937
|
/**
|
|
@@ -26106,7 +26106,7 @@ const specification = {
|
|
|
26106
26106
|
document: {
|
|
26107
26107
|
objects: {
|
|
26108
26108
|
JSONSchema: {
|
|
26109
|
-
element: '
|
|
26109
|
+
element: 'JSONSchemaDraft4',
|
|
26110
26110
|
$visitor: _visitors_json_schema_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
26111
26111
|
fixedFields: {
|
|
26112
26112
|
// core vocabulary
|
|
@@ -26210,7 +26210,7 @@ const specification = {
|
|
|
26210
26210
|
}
|
|
26211
26211
|
},
|
|
26212
26212
|
JSONReference: {
|
|
26213
|
-
element: '
|
|
26213
|
+
element: 'JSONReference',
|
|
26214
26214
|
$visitor: _visitors_json_schema_json_reference_index_mjs__WEBPACK_IMPORTED_MODULE_14__["default"],
|
|
26215
26215
|
fixedFields: {
|
|
26216
26216
|
$ref: _visitors_json_schema_json_reference_$RefVisitor_mjs__WEBPACK_IMPORTED_MODULE_15__["default"]
|
|
@@ -28576,9 +28576,9 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
28576
28576
|
}
|
|
28577
28577
|
|
|
28578
28578
|
// Handle path-based control flow
|
|
28579
|
+
// Note: no break here — other merged visitors must still process this node
|
|
28579
28580
|
if (proxyPath.shouldStop) {
|
|
28580
28581
|
skipping[i] = breakSymbol;
|
|
28581
|
-
break;
|
|
28582
28582
|
}
|
|
28583
28583
|
if (proxyPath.shouldSkip) {
|
|
28584
28584
|
skipping[i] = currentNode;
|
|
@@ -28609,6 +28609,11 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
28609
28609
|
}
|
|
28610
28610
|
}
|
|
28611
28611
|
}
|
|
28612
|
+
|
|
28613
|
+
// stop traversal only when all visitors have stopped
|
|
28614
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
28615
|
+
path.stop();
|
|
28616
|
+
}
|
|
28612
28617
|
if (hasChanged) {
|
|
28613
28618
|
path.replaceWith(currentNode);
|
|
28614
28619
|
return currentNode;
|
|
@@ -28634,9 +28639,9 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
28634
28639
|
}
|
|
28635
28640
|
|
|
28636
28641
|
// Handle path-based control flow
|
|
28642
|
+
// Note: no break here — other merged visitors must still process this node
|
|
28637
28643
|
if (proxyPath.shouldStop) {
|
|
28638
28644
|
skipping[i] = breakSymbol;
|
|
28639
|
-
break;
|
|
28640
28645
|
}
|
|
28641
28646
|
if (proxyPath.removed) {
|
|
28642
28647
|
path.remove();
|
|
@@ -28656,6 +28661,11 @@ const mergeVisitors = (visitors, options = {}) => {
|
|
|
28656
28661
|
skipping[i] = internalSkipSymbol;
|
|
28657
28662
|
}
|
|
28658
28663
|
}
|
|
28664
|
+
|
|
28665
|
+
// stop traversal only when all visitors have stopped
|
|
28666
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
28667
|
+
path.stop();
|
|
28668
|
+
}
|
|
28659
28669
|
return undefined;
|
|
28660
28670
|
}
|
|
28661
28671
|
};
|
|
@@ -28684,9 +28694,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
28684
28694
|
if (typeof visitFn === 'function') {
|
|
28685
28695
|
const proxyPath = createPathProxy(path, currentNode);
|
|
28686
28696
|
const result = await visitFn.call(visitors[i], proxyPath);
|
|
28697
|
+
|
|
28698
|
+
// Handle path-based control flow
|
|
28699
|
+
// Note: no break here — other merged visitors must still process this node
|
|
28687
28700
|
if (proxyPath.shouldStop) {
|
|
28688
28701
|
skipping[i] = breakSymbol;
|
|
28689
|
-
break;
|
|
28690
28702
|
}
|
|
28691
28703
|
if (proxyPath.shouldSkip) {
|
|
28692
28704
|
skipping[i] = currentNode;
|
|
@@ -28716,6 +28728,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
28716
28728
|
}
|
|
28717
28729
|
}
|
|
28718
28730
|
}
|
|
28731
|
+
|
|
28732
|
+
// stop traversal only when all visitors have stopped
|
|
28733
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
28734
|
+
path.stop();
|
|
28735
|
+
}
|
|
28719
28736
|
if (hasChanged) {
|
|
28720
28737
|
path.replaceWith(currentNode);
|
|
28721
28738
|
return currentNode;
|
|
@@ -28730,9 +28747,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
28730
28747
|
if (typeof visitFn === 'function') {
|
|
28731
28748
|
const proxyPath = createPathProxy(path, currentNode);
|
|
28732
28749
|
const result = await visitFn.call(visitors[i], proxyPath);
|
|
28750
|
+
|
|
28751
|
+
// Handle path-based control flow
|
|
28752
|
+
// Note: no break here — other merged visitors must still process this node
|
|
28733
28753
|
if (proxyPath.shouldStop) {
|
|
28734
28754
|
skipping[i] = breakSymbol;
|
|
28735
|
-
break;
|
|
28736
28755
|
}
|
|
28737
28756
|
if (proxyPath.removed) {
|
|
28738
28757
|
path.remove();
|
|
@@ -28751,6 +28770,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
|
|
|
28751
28770
|
skipping[i] = internalSkipSymbol;
|
|
28752
28771
|
}
|
|
28753
28772
|
}
|
|
28773
|
+
|
|
28774
|
+
// stop traversal only when all visitors have stopped
|
|
28775
|
+
if (skipping.every(s => s === breakSymbol)) {
|
|
28776
|
+
path.stop();
|
|
28777
|
+
}
|
|
28754
28778
|
return undefined;
|
|
28755
28779
|
}
|
|
28756
28780
|
};
|