@speclynx/apidom-ns-openapi-2 3.2.1 → 4.0.0
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 +4 -0
- package/dist/apidom-ns-openapi-2.browser.js +24 -20
- package/package.json +7 -7
- package/src/elements/Contact.cjs +0 -33
- package/src/elements/Contact.mjs +0 -30
- package/src/elements/Definitions.cjs +0 -15
- package/src/elements/Definitions.mjs +0 -12
- package/src/elements/Example.cjs +0 -15
- package/src/elements/Example.mjs +0 -12
- package/src/elements/ExternalDocumentation.cjs +0 -27
- package/src/elements/ExternalDocumentation.mjs +0 -24
- package/src/elements/Header.cjs +0 -185
- package/src/elements/Header.mjs +0 -182
- package/src/elements/Headers.cjs +0 -15
- package/src/elements/Headers.mjs +0 -12
- package/src/elements/Info.cjs +0 -52
- package/src/elements/Info.mjs +0 -48
- package/src/elements/Items.cjs +0 -190
- package/src/elements/Items.mjs +0 -187
- package/src/elements/License.cjs +0 -27
- package/src/elements/License.mjs +0 -24
- package/src/elements/Operation.cjs +0 -78
- package/src/elements/Operation.mjs +0 -74
- package/src/elements/Parameter.cjs +0 -230
- package/src/elements/Parameter.mjs +0 -226
- package/src/elements/ParametersDefinitions.cjs +0 -15
- package/src/elements/ParametersDefinitions.mjs +0 -12
- package/src/elements/PathItem.cjs +0 -69
- package/src/elements/PathItem.mjs +0 -65
- package/src/elements/Paths.cjs +0 -15
- package/src/elements/Paths.mjs +0 -12
- package/src/elements/Reference.cjs +0 -22
- package/src/elements/Reference.mjs +0 -19
- package/src/elements/Response.cjs +0 -39
- package/src/elements/Response.mjs +0 -35
- package/src/elements/Responses.cjs +0 -21
- package/src/elements/Responses.mjs +0 -17
- package/src/elements/ResponsesDefinitions.cjs +0 -15
- package/src/elements/ResponsesDefinitions.mjs +0 -12
- package/src/elements/Schema.cjs +0 -151
- package/src/elements/Schema.mjs +0 -147
- package/src/elements/Scopes.cjs +0 -15
- package/src/elements/Scopes.mjs +0 -12
- package/src/elements/SecurityDefinitions.cjs +0 -15
- package/src/elements/SecurityDefinitions.mjs +0 -12
- package/src/elements/SecurityRequirement.cjs +0 -15
- package/src/elements/SecurityRequirement.mjs +0 -12
- package/src/elements/SecurityScheme.cjs +0 -63
- package/src/elements/SecurityScheme.mjs +0 -60
- package/src/elements/Swagger.cjs +0 -106
- package/src/elements/Swagger.mjs +0 -102
- package/src/elements/SwaggerVersion.cjs +0 -17
- package/src/elements/SwaggerVersion.mjs +0 -14
- package/src/elements/Tag.cjs +0 -33
- package/src/elements/Tag.mjs +0 -29
- package/src/elements/Xml.cjs +0 -45
- package/src/elements/Xml.mjs +0 -42
- package/src/elements/nces/OperationConsumes.cjs +0 -16
- package/src/elements/nces/OperationConsumes.mjs +0 -13
- package/src/elements/nces/OperationParameters.cjs +0 -17
- package/src/elements/nces/OperationParameters.mjs +0 -14
- package/src/elements/nces/OperationProduces.cjs +0 -16
- package/src/elements/nces/OperationProduces.mjs +0 -13
- package/src/elements/nces/OperationSchemes.cjs +0 -16
- package/src/elements/nces/OperationSchemes.mjs +0 -13
- package/src/elements/nces/OperationSecurity.cjs +0 -17
- package/src/elements/nces/OperationSecurity.mjs +0 -14
- package/src/elements/nces/OperationTags.cjs +0 -17
- package/src/elements/nces/OperationTags.mjs +0 -14
- package/src/elements/nces/PathItemParameters.cjs +0 -17
- package/src/elements/nces/PathItemParameters.mjs +0 -14
- package/src/elements/nces/SwaggerConsumes.cjs +0 -16
- package/src/elements/nces/SwaggerConsumes.mjs +0 -13
- package/src/elements/nces/SwaggerProduces.cjs +0 -16
- package/src/elements/nces/SwaggerProduces.mjs +0 -13
- package/src/elements/nces/SwaggerSchemes.cjs +0 -16
- package/src/elements/nces/SwaggerSchemes.mjs +0 -13
- package/src/elements/nces/SwaggerSecurity.cjs +0 -17
- package/src/elements/nces/SwaggerSecurity.mjs +0 -14
- package/src/elements/nces/SwaggerTags.cjs +0 -16
- package/src/elements/nces/SwaggerTags.mjs +0 -13
- package/src/index.cjs +0 -156
- package/src/index.mjs +0 -32
- package/src/media-types.cjs +0 -34
- package/src/media-types.mjs +0 -30
- package/src/namespace.cjs +0 -71
- package/src/namespace.mjs +0 -66
- package/src/predicates.cjs +0 -193
- package/src/predicates.mjs +0 -161
- package/src/refractor/index.cjs +0 -316
- package/src/refractor/index.mjs +0 -283
- package/src/refractor/inspect.cjs +0 -157
- package/src/refractor/inspect.mjs +0 -126
- package/src/refractor/plugins/replace-empty-element.cjs +0 -366
- package/src/refractor/plugins/replace-empty-element.mjs +0 -358
- package/src/refractor/predicates.cjs +0 -26
- package/src/refractor/predicates.mjs +0 -21
- package/src/refractor/specification.cjs +0 -519
- package/src/refractor/specification.mjs +0 -513
- package/src/refractor/toolbox.cjs +0 -28
- package/src/refractor/toolbox.mjs +0 -21
- package/src/refractor/visitors/FallbackVisitor.cjs +0 -24
- package/src/refractor/visitors/FallbackVisitor.mjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +0 -13
- package/src/refractor/visitors/SpecificationVisitor.cjs +0 -75
- package/src/refractor/visitors/SpecificationVisitor.mjs +0 -69
- package/src/refractor/visitors/Visitor.cjs +0 -36
- package/src/refractor/visitors/Visitor.mjs +0 -33
- package/src/refractor/visitors/generics/AlternatingVisitor.cjs +0 -42
- package/src/refractor/visitors/generics/AlternatingVisitor.mjs +0 -35
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +0 -73
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +0 -66
- package/src/refractor/visitors/generics/MapVisitor.cjs +0 -21
- package/src/refractor/visitors/generics/MapVisitor.mjs +0 -15
- package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +0 -67
- package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +0 -61
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +0 -72
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +0 -66
- package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/HostVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/HostVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +0 -21
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +0 -16
- package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/bases.cjs +0 -72
- package/src/refractor/visitors/open-api-2/bases.mjs +0 -67
- package/src/refractor/visitors/open-api-2/contact/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/contact/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/definitions/index.cjs +0 -31
- package/src/refractor/visitors/open-api-2/definitions/index.mjs +0 -26
- package/src/refractor/visitors/open-api-2/example/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/example/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/header/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/header/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/headers/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/headers/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/index.cjs +0 -21
- package/src/refractor/visitors/open-api-2/index.mjs +0 -16
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-2/info/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/info/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/items/index.cjs +0 -22
- package/src/refractor/visitors/open-api-2/items/index.mjs +0 -17
- package/src/refractor/visitors/open-api-2/license/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/license/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/operation/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/parameter/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/parameter/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-2/path-item/index.cjs +0 -39
- package/src/refractor/visitors/open-api-2/path-item/index.mjs +0 -34
- package/src/refractor/visitors/open-api-2/paths/index.cjs +0 -37
- package/src/refractor/visitors/open-api-2/paths/index.mjs +0 -32
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/reference/index.cjs +0 -29
- package/src/refractor/visitors/open-api-2/reference/index.mjs +0 -24
- package/src/refractor/visitors/open-api-2/response/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/response/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +0 -36
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +0 -31
- package/src/refractor/visitors/open-api-2/responses/index.cjs +0 -45
- package/src/refractor/visitors/open-api-2/responses/index.mjs +0 -40
- package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +0 -24
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +0 -26
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +0 -23
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +0 -24
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-2/schema/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/scopes/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/scopes/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/tag/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/tag/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/xml/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/xml/index.mjs +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.0](https://github.com/speclynx/apidom/compare/v3.2.1...v4.0.0) (2026-03-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @speclynx/apidom-ns-openapi-2
|
|
9
|
+
|
|
6
10
|
## [3.2.1](https://github.com/speclynx/apidom/compare/v3.2.0...v3.2.1) (2026-03-09)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
|
@@ -27552,7 +27552,9 @@ class Path {
|
|
|
27552
27552
|
*
|
|
27553
27553
|
* @example
|
|
27554
27554
|
* // For a path to $.paths['/pets'].get in an OpenAPI document:
|
|
27555
|
+
* ```
|
|
27555
27556
|
* path.getPathKeys(); // => ['paths', '/pets', 'get']
|
|
27557
|
+
* ```
|
|
27556
27558
|
*/
|
|
27557
27559
|
getPathKeys() {
|
|
27558
27560
|
const keys = [];
|
|
@@ -27587,18 +27589,22 @@ class Path {
|
|
|
27587
27589
|
* or Normalized JSONPath like "$['paths']['/pets']['get']['responses']['200']"
|
|
27588
27590
|
*
|
|
27589
27591
|
* @example
|
|
27592
|
+
* ```
|
|
27590
27593
|
* // JSON Pointer examples:
|
|
27591
27594
|
* path.formatPath(); // "" (root)
|
|
27592
27595
|
* path.formatPath(); // "/info"
|
|
27593
27596
|
* path.formatPath(); // "/paths/~1pets/get"
|
|
27594
27597
|
* path.formatPath(); // "/paths/~1users~1{id}/parameters/0"
|
|
27598
|
+
* ```
|
|
27595
27599
|
*
|
|
27596
27600
|
* @example
|
|
27601
|
+
* ```
|
|
27597
27602
|
* // JSONPath examples:
|
|
27598
27603
|
* path.formatPath('jsonpath'); // "$" (root)
|
|
27599
27604
|
* path.formatPath('jsonpath'); // "$['info']"
|
|
27600
27605
|
* path.formatPath('jsonpath'); // "$['paths']['/pets']['get']"
|
|
27601
27606
|
* path.formatPath('jsonpath'); // "$['paths']['/users/{id}']['parameters'][0]"
|
|
27607
|
+
* ```
|
|
27602
27608
|
*/
|
|
27603
27609
|
formatPath(pathFormat = 'jsonpointer') {
|
|
27604
27610
|
const parts = this.getPathKeys();
|
|
@@ -27806,15 +27812,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27806
27812
|
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
|
|
27807
27813
|
|
|
27808
27814
|
/**
|
|
27809
|
-
* Finds all elements
|
|
27815
|
+
* Finds all paths whose elements match the predicate.
|
|
27810
27816
|
* @public
|
|
27811
27817
|
*/
|
|
27812
27818
|
const filter = (element, predicate) => {
|
|
27813
27819
|
const result = [];
|
|
27814
27820
|
(0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
|
|
27815
27821
|
enter(path) {
|
|
27816
|
-
if (predicate(path
|
|
27817
|
-
result.push(path
|
|
27822
|
+
if (predicate(path)) {
|
|
27823
|
+
result.push(path);
|
|
27818
27824
|
}
|
|
27819
27825
|
}
|
|
27820
27826
|
});
|
|
@@ -27839,7 +27845,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27839
27845
|
* @public
|
|
27840
27846
|
*/
|
|
27841
27847
|
/**
|
|
27842
|
-
* Finds the most inner node at the given offset.
|
|
27848
|
+
* Finds the path of the most inner node at the given offset.
|
|
27843
27849
|
* If includeRightBound is set, also finds nodes that end at the given offset.
|
|
27844
27850
|
* @public
|
|
27845
27851
|
*/
|
|
@@ -27864,7 +27870,7 @@ const findAtOffset = (element, options) => {
|
|
|
27864
27870
|
const endOffset = node.endOffset;
|
|
27865
27871
|
const isWithinOffsetRange = offset >= startOffset && (offset < endOffset || includeRightBound && offset <= endOffset);
|
|
27866
27872
|
if (isWithinOffsetRange) {
|
|
27867
|
-
result.push(
|
|
27873
|
+
result.push(path);
|
|
27868
27874
|
return; // push to stack and dive in
|
|
27869
27875
|
}
|
|
27870
27876
|
path.skip(); // skip entire sub-tree
|
|
@@ -27886,15 +27892,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27886
27892
|
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
|
|
27887
27893
|
|
|
27888
27894
|
/**
|
|
27889
|
-
*
|
|
27895
|
+
* Finds first path whose element satisfies the provided predicate.
|
|
27890
27896
|
* @public
|
|
27891
27897
|
*/
|
|
27892
27898
|
const find = (element, predicate) => {
|
|
27893
27899
|
let result;
|
|
27894
27900
|
(0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
|
|
27895
27901
|
enter(path) {
|
|
27896
|
-
if (predicate(path
|
|
27897
|
-
result = path
|
|
27902
|
+
if (predicate(path)) {
|
|
27903
|
+
result = path;
|
|
27898
27904
|
path.stop();
|
|
27899
27905
|
}
|
|
27900
27906
|
}
|
|
@@ -27912,9 +27918,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27912
27918
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27913
27919
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
27914
27920
|
/* harmony export */ });
|
|
27915
|
-
/* harmony import */ var
|
|
27916
|
-
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2078);
|
|
27917
|
-
|
|
27921
|
+
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
|
|
27918
27922
|
|
|
27919
27923
|
/**
|
|
27920
27924
|
* @public
|
|
@@ -27923,7 +27927,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27923
27927
|
* @public
|
|
27924
27928
|
*/
|
|
27925
27929
|
/**
|
|
27926
|
-
* Executes the callback on this element and all
|
|
27930
|
+
* Executes the callback on this element's path and all descendant paths.
|
|
27927
27931
|
* @public
|
|
27928
27932
|
*/
|
|
27929
27933
|
const forEach = (element, options) => {
|
|
@@ -27931,15 +27935,15 @@ const forEach = (element, options) => {
|
|
|
27931
27935
|
let predicate;
|
|
27932
27936
|
if (typeof options === 'function') {
|
|
27933
27937
|
callback = options;
|
|
27934
|
-
predicate =
|
|
27938
|
+
predicate = () => true;
|
|
27935
27939
|
} else {
|
|
27936
27940
|
callback = options.callback ?? (() => {});
|
|
27937
|
-
predicate = options.predicate ??
|
|
27941
|
+
predicate = options.predicate ?? (() => true);
|
|
27938
27942
|
}
|
|
27939
|
-
(0,
|
|
27943
|
+
(0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
|
|
27940
27944
|
enter(path) {
|
|
27941
|
-
if (predicate(path
|
|
27942
|
-
callback(path
|
|
27945
|
+
if (predicate(path)) {
|
|
27946
|
+
callback(path);
|
|
27943
27947
|
}
|
|
27944
27948
|
}
|
|
27945
27949
|
});
|
|
@@ -27986,11 +27990,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27986
27990
|
/* harmony import */ var _filter_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5247);
|
|
27987
27991
|
|
|
27988
27992
|
/**
|
|
27989
|
-
* Complement of filter. Finds all elements NOT
|
|
27993
|
+
* Complement of filter. Finds all paths whose elements do NOT match the predicate.
|
|
27990
27994
|
* @public
|
|
27991
27995
|
*/
|
|
27992
27996
|
const reject = (element, predicate) => {
|
|
27993
|
-
return (0,_filter_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(element,
|
|
27997
|
+
return (0,_filter_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(element, path => !predicate(path));
|
|
27994
27998
|
};
|
|
27995
27999
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reject);
|
|
27996
28000
|
|
|
@@ -28006,7 +28010,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28006
28010
|
/* harmony import */ var _find_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4860);
|
|
28007
28011
|
|
|
28008
28012
|
/**
|
|
28009
|
-
* Tests whether at least one element passes the predicate.
|
|
28013
|
+
* Tests whether at least one path's element passes the predicate.
|
|
28010
28014
|
* @public
|
|
28011
28015
|
*/
|
|
28012
28016
|
const some = (element, predicate) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speclynx/apidom-ns-openapi-2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "OpenAPI 2.0 namespace for ApiDOM.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apidom",
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"license": "Apache-2.0",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/runtime-corejs3": "^7.28.4",
|
|
59
|
-
"@speclynx/apidom-core": "
|
|
60
|
-
"@speclynx/apidom-datamodel": "
|
|
61
|
-
"@speclynx/apidom-error": "
|
|
62
|
-
"@speclynx/apidom-ns-json-schema-draft-4": "
|
|
63
|
-
"@speclynx/apidom-traverse": "
|
|
59
|
+
"@speclynx/apidom-core": "4.0.0",
|
|
60
|
+
"@speclynx/apidom-datamodel": "4.0.0",
|
|
61
|
+
"@speclynx/apidom-error": "4.0.0",
|
|
62
|
+
"@speclynx/apidom-ns-json-schema-draft-4": "4.0.0",
|
|
63
|
+
"@speclynx/apidom-traverse": "4.0.0",
|
|
64
64
|
"ramda": "~0.32.0",
|
|
65
65
|
"ramda-adjunct": "^6.0.0",
|
|
66
66
|
"ts-mixer": "^6.0.4"
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"README.md",
|
|
76
76
|
"CHANGELOG.md"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "384ff82a1bb68d015fd6801de641898b4b582876"
|
|
79
79
|
}
|
package/src/elements/Contact.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Contact extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'contact';
|
|
13
|
-
}
|
|
14
|
-
get name() {
|
|
15
|
-
return this.get('name');
|
|
16
|
-
}
|
|
17
|
-
set name(name) {
|
|
18
|
-
this.set('name', name);
|
|
19
|
-
}
|
|
20
|
-
get url() {
|
|
21
|
-
return this.get('url');
|
|
22
|
-
}
|
|
23
|
-
set url(url) {
|
|
24
|
-
this.set('url', url);
|
|
25
|
-
}
|
|
26
|
-
get email() {
|
|
27
|
-
return this.get('email');
|
|
28
|
-
}
|
|
29
|
-
set email(email) {
|
|
30
|
-
this.set('email', email);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
var _default = exports.default = Contact;
|
package/src/elements/Contact.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Contact extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'contact';
|
|
10
|
-
}
|
|
11
|
-
get name() {
|
|
12
|
-
return this.get('name');
|
|
13
|
-
}
|
|
14
|
-
set name(name) {
|
|
15
|
-
this.set('name', name);
|
|
16
|
-
}
|
|
17
|
-
get url() {
|
|
18
|
-
return this.get('url');
|
|
19
|
-
}
|
|
20
|
-
set url(url) {
|
|
21
|
-
this.set('url', url);
|
|
22
|
-
}
|
|
23
|
-
get email() {
|
|
24
|
-
return this.get('email');
|
|
25
|
-
}
|
|
26
|
-
set email(email) {
|
|
27
|
-
this.set('email', email);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export default Contact;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Definitions extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'definitions';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
var _default = exports.default = Definitions;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Definitions extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'definitions';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default Definitions;
|
package/src/elements/Example.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Example extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'example';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
var _default = exports.default = Example;
|
package/src/elements/Example.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Example extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'example';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default Example;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class ExternalDocumentation extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'externalDocumentation';
|
|
13
|
-
}
|
|
14
|
-
get description() {
|
|
15
|
-
return this.get('description');
|
|
16
|
-
}
|
|
17
|
-
set description(description) {
|
|
18
|
-
this.set('description', description);
|
|
19
|
-
}
|
|
20
|
-
get url() {
|
|
21
|
-
return this.get('url');
|
|
22
|
-
}
|
|
23
|
-
set url(url) {
|
|
24
|
-
this.set('url', url);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
var _default = exports.default = ExternalDocumentation;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class ExternalDocumentation extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'externalDocumentation';
|
|
10
|
-
}
|
|
11
|
-
get description() {
|
|
12
|
-
return this.get('description');
|
|
13
|
-
}
|
|
14
|
-
set description(description) {
|
|
15
|
-
this.set('description', description);
|
|
16
|
-
}
|
|
17
|
-
get url() {
|
|
18
|
-
return this.get('url');
|
|
19
|
-
}
|
|
20
|
-
set url(url) {
|
|
21
|
-
this.set('url', url);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export default ExternalDocumentation;
|
package/src/elements/Header.cjs
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomError = require("@speclynx/apidom-error");
|
|
6
|
-
var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-4");
|
|
7
|
-
/**
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
class Header extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
|
|
11
|
-
constructor(content, meta, attributes) {
|
|
12
|
-
super(content, meta, attributes);
|
|
13
|
-
this.element = 'header';
|
|
14
|
-
this.classes.push('json-schema-draft-4');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Core vocabulary
|
|
19
|
-
*
|
|
20
|
-
* URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
get idField() {
|
|
24
|
-
throw new _apidomError.UnsupportedOperationError('idField getter in Header class is not not supported.');
|
|
25
|
-
}
|
|
26
|
-
set idField(idField) {
|
|
27
|
-
throw new _apidomError.UnsupportedOperationError('idField setter in Header class is not not supported.');
|
|
28
|
-
}
|
|
29
|
-
get $schema() {
|
|
30
|
-
throw new _apidomError.UnsupportedOperationError('$schema getter in Header class is not not supported.');
|
|
31
|
-
}
|
|
32
|
-
set $schema($schema) {
|
|
33
|
-
throw new _apidomError.UnsupportedOperationError('$schema setter in Header class is not not supported.');
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Validation keywords for arrays
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
get additionalItems() {
|
|
41
|
-
throw new _apidomError.UnsupportedOperationError('additionalItems getter in Header class is not not supported.');
|
|
42
|
-
}
|
|
43
|
-
set additionalItems(additionalItems) {
|
|
44
|
-
throw new _apidomError.UnsupportedOperationError('additionalItems setter in Header class is not not supported.');
|
|
45
|
-
}
|
|
46
|
-
get itemsField() {
|
|
47
|
-
return this.get('items');
|
|
48
|
-
}
|
|
49
|
-
set itemsField(items) {
|
|
50
|
-
this.set('items', items);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Validation keywords for objects
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
get maxProperties() {
|
|
58
|
-
throw new _apidomError.UnsupportedOperationError('maxProperties getter in Header class is not not supported.');
|
|
59
|
-
}
|
|
60
|
-
set maxProperties(maxProperties) {
|
|
61
|
-
throw new _apidomError.UnsupportedOperationError('maxProperties setter in Header class is not not supported.');
|
|
62
|
-
}
|
|
63
|
-
get minProperties() {
|
|
64
|
-
throw new _apidomError.UnsupportedOperationError('minProperties getter in Header class is not not supported.');
|
|
65
|
-
}
|
|
66
|
-
set minProperties(minProperties) {
|
|
67
|
-
throw new _apidomError.UnsupportedOperationError('minProperties setter in Header class is not not supported.');
|
|
68
|
-
}
|
|
69
|
-
get required() {
|
|
70
|
-
throw new _apidomError.UnsupportedOperationError('required getter in Header class is not not supported.');
|
|
71
|
-
}
|
|
72
|
-
set required(required) {
|
|
73
|
-
throw new _apidomError.UnsupportedOperationError('required setter in Header class is not not supported.');
|
|
74
|
-
}
|
|
75
|
-
get properties() {
|
|
76
|
-
throw new _apidomError.UnsupportedOperationError('properties getter in Header class is not not supported.');
|
|
77
|
-
}
|
|
78
|
-
set properties(properties) {
|
|
79
|
-
throw new _apidomError.UnsupportedOperationError('properties setter in Header class is not not supported.');
|
|
80
|
-
}
|
|
81
|
-
get additionalProperties() {
|
|
82
|
-
throw new _apidomError.UnsupportedOperationError('additionalProperties getter in Header class is not not supported.');
|
|
83
|
-
}
|
|
84
|
-
set additionalProperties(additionalProperties) {
|
|
85
|
-
throw new _apidomError.UnsupportedOperationError('additionalProperties setter in Header class is not not supported.');
|
|
86
|
-
}
|
|
87
|
-
get patternProperties() {
|
|
88
|
-
throw new _apidomError.UnsupportedOperationError('patternProperties getter in Header class is not not supported.');
|
|
89
|
-
}
|
|
90
|
-
set patternProperties(patternProperties) {
|
|
91
|
-
throw new _apidomError.UnsupportedOperationError('patternProperties setter in Header class is not not supported.');
|
|
92
|
-
}
|
|
93
|
-
get dependencies() {
|
|
94
|
-
throw new _apidomError.UnsupportedOperationError('dependencies getter in Header class is not not supported.');
|
|
95
|
-
}
|
|
96
|
-
set dependencies(dependencies) {
|
|
97
|
-
throw new _apidomError.UnsupportedOperationError('dependencies setter in Header class is not not supported.');
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Validation keywords for any instance type
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
get type() {
|
|
105
|
-
return this.get('type');
|
|
106
|
-
}
|
|
107
|
-
set type(type) {
|
|
108
|
-
this.set('type', type);
|
|
109
|
-
}
|
|
110
|
-
get allOf() {
|
|
111
|
-
throw new _apidomError.UnsupportedOperationError('allOf getter in Header class is not not supported.');
|
|
112
|
-
}
|
|
113
|
-
set allOf(allOf) {
|
|
114
|
-
throw new _apidomError.UnsupportedOperationError('allOf setter in Header class is not not supported.');
|
|
115
|
-
}
|
|
116
|
-
get anyOf() {
|
|
117
|
-
throw new _apidomError.UnsupportedOperationError('anyOf getter in Header class is not not supported.');
|
|
118
|
-
}
|
|
119
|
-
set anyOf(anyOf) {
|
|
120
|
-
throw new _apidomError.UnsupportedOperationError('anyOf setter in Header class is not not supported.');
|
|
121
|
-
}
|
|
122
|
-
get oneOf() {
|
|
123
|
-
throw new _apidomError.UnsupportedOperationError('oneOf getter in Header class is not not supported.');
|
|
124
|
-
}
|
|
125
|
-
set oneOf(oneOf) {
|
|
126
|
-
throw new _apidomError.UnsupportedOperationError('oneOf setter in Header class is not not supported.');
|
|
127
|
-
}
|
|
128
|
-
get not() {
|
|
129
|
-
throw new _apidomError.UnsupportedOperationError('not getter in Header class is not not supported.');
|
|
130
|
-
}
|
|
131
|
-
set not(not) {
|
|
132
|
-
throw new _apidomError.UnsupportedOperationError('not setter in Header class is not not supported.');
|
|
133
|
-
}
|
|
134
|
-
get definitions() {
|
|
135
|
-
throw new _apidomError.UnsupportedOperationError('definitions getter in Header class is not not supported.');
|
|
136
|
-
}
|
|
137
|
-
set definitions(definitions) {
|
|
138
|
-
throw new _apidomError.UnsupportedOperationError('definitions setter in Header class is not not supported.');
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Metadata keywords
|
|
143
|
-
*
|
|
144
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
get title() {
|
|
148
|
-
throw new _apidomError.UnsupportedOperationError('title getter in Header class is not not supported.');
|
|
149
|
-
}
|
|
150
|
-
set title(title) {
|
|
151
|
-
throw new _apidomError.UnsupportedOperationError('title setter in Header class is not not supported.');
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* JSON Hyper-Schema
|
|
156
|
-
*
|
|
157
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
get base() {
|
|
161
|
-
throw new _apidomError.UnsupportedOperationError('base getter in Header class is not not supported.');
|
|
162
|
-
}
|
|
163
|
-
set base(base) {
|
|
164
|
-
throw new _apidomError.UnsupportedOperationError('base setter in Header class is not not supported.');
|
|
165
|
-
}
|
|
166
|
-
get linksField() {
|
|
167
|
-
throw new _apidomError.UnsupportedOperationError('linksField getter in Header class is not not supported.');
|
|
168
|
-
}
|
|
169
|
-
set linksField(links) {
|
|
170
|
-
throw new _apidomError.UnsupportedOperationError('linksField setter in Header class is not not supported.');
|
|
171
|
-
}
|
|
172
|
-
get media() {
|
|
173
|
-
throw new _apidomError.UnsupportedOperationError('media getter in Header class is not not supported.');
|
|
174
|
-
}
|
|
175
|
-
set media(media) {
|
|
176
|
-
throw new _apidomError.UnsupportedOperationError('media setter in Header class is not not supported.');
|
|
177
|
-
}
|
|
178
|
-
get readOnly() {
|
|
179
|
-
throw new _apidomError.UnsupportedOperationError('readOnly getter in Header class is not not supported.');
|
|
180
|
-
}
|
|
181
|
-
set readOnly(readOnly) {
|
|
182
|
-
throw new _apidomError.UnsupportedOperationError('readOnly setter in Header class is not not supported.');
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
var _default = exports.default = Header;
|