@speclynx/apidom-ns-arazzo-1 3.2.0 → 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 +16 -0
- package/dist/apidom-ns-arazzo-1.browser.js +24 -20
- package/package.json +6 -6
- package/src/elements/Arazzo.cjs +0 -17
- package/src/elements/Arazzo.mjs +0 -14
- package/src/elements/ArazzoSpecification1.cjs +0 -46
- package/src/elements/ArazzoSpecification1.mjs +0 -42
- package/src/elements/Components.cjs +0 -39
- package/src/elements/Components.mjs +0 -35
- package/src/elements/Criterion.cjs +0 -33
- package/src/elements/Criterion.mjs +0 -29
- package/src/elements/CriterionExpressionType.cjs +0 -27
- package/src/elements/CriterionExpressionType.mjs +0 -24
- package/src/elements/FailureAction.cjs +0 -57
- package/src/elements/FailureAction.mjs +0 -53
- package/src/elements/Info.cjs +0 -40
- package/src/elements/Info.mjs +0 -37
- package/src/elements/JSONSchema.cjs +0 -15
- package/src/elements/JSONSchema.mjs +0 -12
- package/src/elements/Parameter.cjs +0 -33
- package/src/elements/Parameter.mjs +0 -30
- package/src/elements/PayloadReplacement.cjs +0 -27
- package/src/elements/PayloadReplacement.mjs +0 -24
- package/src/elements/RequestBody.cjs +0 -33
- package/src/elements/RequestBody.mjs +0 -29
- package/src/elements/Reusable.cjs +0 -28
- package/src/elements/Reusable.mjs +0 -25
- package/src/elements/SourceDescription.cjs +0 -33
- package/src/elements/SourceDescription.mjs +0 -30
- package/src/elements/Step.cjs +0 -81
- package/src/elements/Step.mjs +0 -77
- package/src/elements/SuccessAction.cjs +0 -45
- package/src/elements/SuccessAction.mjs +0 -41
- package/src/elements/Workflow.cjs +0 -75
- package/src/elements/Workflow.mjs +0 -71
- package/src/elements/nces/ComponentsFailureActions.cjs +0 -16
- package/src/elements/nces/ComponentsFailureActions.mjs +0 -13
- package/src/elements/nces/ComponentsInputs.cjs +0 -16
- package/src/elements/nces/ComponentsInputs.mjs +0 -13
- package/src/elements/nces/ComponentsParameters.cjs +0 -17
- package/src/elements/nces/ComponentsParameters.mjs +0 -14
- package/src/elements/nces/ComponentsSuccessActions.cjs +0 -16
- package/src/elements/nces/ComponentsSuccessActions.mjs +0 -13
- package/src/elements/nces/FailureActionCriteria.cjs +0 -17
- package/src/elements/nces/FailureActionCriteria.mjs +0 -14
- package/src/elements/nces/RequestBodyReplacements.cjs +0 -16
- package/src/elements/nces/RequestBodyReplacements.mjs +0 -13
- package/src/elements/nces/SourceDescriptions.cjs +0 -16
- package/src/elements/nces/SourceDescriptions.mjs +0 -13
- package/src/elements/nces/StepDependsOn.cjs +0 -16
- package/src/elements/nces/StepDependsOn.mjs +0 -13
- package/src/elements/nces/StepOnFailure.cjs +0 -16
- package/src/elements/nces/StepOnFailure.mjs +0 -13
- package/src/elements/nces/StepOnSuccess.cjs +0 -16
- package/src/elements/nces/StepOnSuccess.mjs +0 -13
- package/src/elements/nces/StepOutputs.cjs +0 -16
- package/src/elements/nces/StepOutputs.mjs +0 -13
- package/src/elements/nces/StepParameters.cjs +0 -17
- package/src/elements/nces/StepParameters.mjs +0 -14
- package/src/elements/nces/StepSuccessCriteria.cjs +0 -17
- package/src/elements/nces/StepSuccessCriteria.mjs +0 -14
- package/src/elements/nces/SuccessActionCriteria.cjs +0 -17
- package/src/elements/nces/SuccessActionCriteria.mjs +0 -14
- package/src/elements/nces/WorkflowDependsOn.cjs +0 -16
- package/src/elements/nces/WorkflowDependsOn.mjs +0 -13
- package/src/elements/nces/WorkflowFailureActions.cjs +0 -16
- package/src/elements/nces/WorkflowFailureActions.mjs +0 -13
- package/src/elements/nces/WorkflowOutputs.cjs +0 -16
- package/src/elements/nces/WorkflowOutputs.mjs +0 -13
- package/src/elements/nces/WorkflowParameters.cjs +0 -17
- package/src/elements/nces/WorkflowParameters.mjs +0 -14
- package/src/elements/nces/WorkflowSteps.cjs +0 -16
- package/src/elements/nces/WorkflowSteps.mjs +0 -13
- package/src/elements/nces/WorkflowSuccessActions.cjs +0 -16
- package/src/elements/nces/WorkflowSuccessActions.mjs +0 -13
- package/src/elements/nces/Workflows.cjs +0 -16
- package/src/elements/nces/Workflows.mjs +0 -13
- package/src/index.cjs +0 -152
- package/src/index.mjs +0 -38
- package/src/media-types.cjs +0 -34
- package/src/media-types.mjs +0 -30
- package/src/namespace.cjs +0 -49
- package/src/namespace.mjs +0 -44
- package/src/predicates.cjs +0 -263
- package/src/predicates.mjs +0 -218
- package/src/refractor/index.cjs +0 -200
- package/src/refractor/index.mjs +0 -177
- package/src/refractor/inspect.cjs +0 -118
- package/src/refractor/inspect.mjs +0 -98
- package/src/refractor/plugins/replace-empty-element.cjs +0 -92
- package/src/refractor/plugins/replace-empty-element.mjs +0 -86
- package/src/refractor/predicates.cjs +0 -18
- package/src/refractor/predicates.mjs +0 -12
- package/src/refractor/specification.cjs +0 -312
- package/src/refractor/specification.mjs +0 -307
- 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 -19
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +0 -14
- 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/arazzo-1/ArazzoVisitor.cjs +0 -25
- package/src/refractor/visitors/arazzo-1/ArazzoVisitor.mjs +0 -19
- package/src/refractor/visitors/arazzo-1/SourceDescriptionsVisitor.cjs +0 -32
- package/src/refractor/visitors/arazzo-1/SourceDescriptionsVisitor.mjs +0 -26
- package/src/refractor/visitors/arazzo-1/WorkflowsVisitor.cjs +0 -32
- package/src/refractor/visitors/arazzo-1/WorkflowsVisitor.mjs +0 -26
- package/src/refractor/visitors/arazzo-1/bases.cjs +0 -39
- package/src/refractor/visitors/arazzo-1/bases.mjs +0 -34
- package/src/refractor/visitors/arazzo-1/components/FailureActionsVisitor.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/components/FailureActionsVisitor.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/components/InputsVisitor.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/components/InputsVisitor.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/components/ParametersVisitor.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/components/ParametersVisitor.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/components/SuccessActionsVisitor.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/components/SuccessActionsVisitor.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/components/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/components/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/criterion/TypeVisitor.cjs +0 -20
- package/src/refractor/visitors/arazzo-1/criterion/TypeVisitor.mjs +0 -15
- package/src/refractor/visitors/arazzo-1/criterion/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/criterion/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/criterion-expression-type/VersionVisitor.cjs +0 -16
- package/src/refractor/visitors/arazzo-1/criterion-expression-type/VersionVisitor.mjs +0 -11
- package/src/refractor/visitors/arazzo-1/criterion-expression-type/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/criterion-expression-type/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/failure-action/CriteriaVisitor.cjs +0 -32
- package/src/refractor/visitors/arazzo-1/failure-action/CriteriaVisitor.mjs +0 -26
- package/src/refractor/visitors/arazzo-1/failure-action/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/failure-action/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/index.cjs +0 -32
- package/src/refractor/visitors/arazzo-1/index.mjs +0 -26
- package/src/refractor/visitors/arazzo-1/info/VersionVisitor.cjs +0 -17
- package/src/refractor/visitors/arazzo-1/info/VersionVisitor.mjs +0 -12
- package/src/refractor/visitors/arazzo-1/info/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/info/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/json-schema/index.cjs +0 -17
- package/src/refractor/visitors/arazzo-1/json-schema/index.mjs +0 -12
- package/src/refractor/visitors/arazzo-1/parameter/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/parameter/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/payload-replacement/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/payload-replacement/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/request-body/Replacements.cjs +0 -32
- package/src/refractor/visitors/arazzo-1/request-body/Replacements.mjs +0 -26
- package/src/refractor/visitors/arazzo-1/request-body/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/request-body/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/reusable/ReferenceVisitor.cjs +0 -17
- package/src/refractor/visitors/arazzo-1/reusable/ReferenceVisitor.mjs +0 -11
- package/src/refractor/visitors/arazzo-1/reusable/index.cjs +0 -35
- package/src/refractor/visitors/arazzo-1/reusable/index.mjs +0 -29
- package/src/refractor/visitors/arazzo-1/source-description/UrlVisitor.cjs +0 -16
- package/src/refractor/visitors/arazzo-1/source-description/UrlVisitor.mjs +0 -11
- package/src/refractor/visitors/arazzo-1/source-description/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/source-description/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/step/OnFailureVisitor.cjs +0 -36
- package/src/refractor/visitors/arazzo-1/step/OnFailureVisitor.mjs +0 -30
- package/src/refractor/visitors/arazzo-1/step/OnSuccessVisitor.cjs +0 -36
- package/src/refractor/visitors/arazzo-1/step/OnSuccessVisitor.mjs +0 -30
- package/src/refractor/visitors/arazzo-1/step/OutputsVisitor.cjs +0 -23
- package/src/refractor/visitors/arazzo-1/step/OutputsVisitor.mjs +0 -17
- package/src/refractor/visitors/arazzo-1/step/ParametersVisitor.cjs +0 -36
- package/src/refractor/visitors/arazzo-1/step/ParametersVisitor.mjs +0 -30
- package/src/refractor/visitors/arazzo-1/step/SuccessCriteriaVisitor.cjs +0 -31
- package/src/refractor/visitors/arazzo-1/step/SuccessCriteriaVisitor.mjs +0 -25
- package/src/refractor/visitors/arazzo-1/step/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/step/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/success-action/CriteriaVisitor.cjs +0 -32
- package/src/refractor/visitors/arazzo-1/success-action/CriteriaVisitor.mjs +0 -26
- package/src/refractor/visitors/arazzo-1/success-action/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/success-action/index.mjs +0 -18
- package/src/refractor/visitors/arazzo-1/workflow/DependsOnVisitor.cjs +0 -32
- package/src/refractor/visitors/arazzo-1/workflow/DependsOnVisitor.mjs +0 -26
- package/src/refractor/visitors/arazzo-1/workflow/FailureActionsVisitor.cjs +0 -36
- package/src/refractor/visitors/arazzo-1/workflow/FailureActionsVisitor.mjs +0 -30
- package/src/refractor/visitors/arazzo-1/workflow/OutputsVisitor.cjs +0 -23
- package/src/refractor/visitors/arazzo-1/workflow/OutputsVisitor.mjs +0 -17
- package/src/refractor/visitors/arazzo-1/workflow/ParametersVisitor.cjs +0 -36
- package/src/refractor/visitors/arazzo-1/workflow/ParametersVisitor.mjs +0 -30
- package/src/refractor/visitors/arazzo-1/workflow/StepsVisitor.cjs +0 -31
- package/src/refractor/visitors/arazzo-1/workflow/StepsVisitor.mjs +0 -25
- package/src/refractor/visitors/arazzo-1/workflow/SuccessActionsVisitor.cjs +0 -36
- package/src/refractor/visitors/arazzo-1/workflow/SuccessActionsVisitor.mjs +0 -30
- package/src/refractor/visitors/arazzo-1/workflow/index.cjs +0 -24
- package/src/refractor/visitors/arazzo-1/workflow/index.mjs +0 -18
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +0 -72
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +0 -65
- package/src/refractor/visitors/generics/MapVisitor.cjs +0 -21
- package/src/refractor/visitors/generics/MapVisitor.mjs +0 -15
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +0 -71
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **traverse:** all traverse operations work on Path and not Element ([#153](https://github.com/speclynx/apidom/issues/153)) ([67d244c](https://github.com/speclynx/apidom/commit/67d244cfd3e77f6a9db704cede50ba8e45d10b11))
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
- **traverse:** This is a breaking change as operation callbacks
|
|
15
|
+
now accept Path instead of Element. By accepting Path, full
|
|
16
|
+
context of traversal is exposed to consumer instead of just Element.
|
|
17
|
+
|
|
18
|
+
## [3.2.1](https://github.com/speclynx/apidom/compare/v3.2.0...v3.2.1) (2026-03-09)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @speclynx/apidom-ns-arazzo-1
|
|
21
|
+
|
|
6
22
|
# [3.2.0](https://github.com/speclynx/apidom/compare/v3.1.0...v3.2.0) (2026-03-08)
|
|
7
23
|
|
|
8
24
|
### Features
|
|
@@ -27712,7 +27712,9 @@ class Path {
|
|
|
27712
27712
|
*
|
|
27713
27713
|
* @example
|
|
27714
27714
|
* // For a path to $.paths['/pets'].get in an OpenAPI document:
|
|
27715
|
+
* ```
|
|
27715
27716
|
* path.getPathKeys(); // => ['paths', '/pets', 'get']
|
|
27717
|
+
* ```
|
|
27716
27718
|
*/
|
|
27717
27719
|
getPathKeys() {
|
|
27718
27720
|
const keys = [];
|
|
@@ -27747,18 +27749,22 @@ class Path {
|
|
|
27747
27749
|
* or Normalized JSONPath like "$['paths']['/pets']['get']['responses']['200']"
|
|
27748
27750
|
*
|
|
27749
27751
|
* @example
|
|
27752
|
+
* ```
|
|
27750
27753
|
* // JSON Pointer examples:
|
|
27751
27754
|
* path.formatPath(); // "" (root)
|
|
27752
27755
|
* path.formatPath(); // "/info"
|
|
27753
27756
|
* path.formatPath(); // "/paths/~1pets/get"
|
|
27754
27757
|
* path.formatPath(); // "/paths/~1users~1{id}/parameters/0"
|
|
27758
|
+
* ```
|
|
27755
27759
|
*
|
|
27756
27760
|
* @example
|
|
27761
|
+
* ```
|
|
27757
27762
|
* // JSONPath examples:
|
|
27758
27763
|
* path.formatPath('jsonpath'); // "$" (root)
|
|
27759
27764
|
* path.formatPath('jsonpath'); // "$['info']"
|
|
27760
27765
|
* path.formatPath('jsonpath'); // "$['paths']['/pets']['get']"
|
|
27761
27766
|
* path.formatPath('jsonpath'); // "$['paths']['/users/{id}']['parameters'][0]"
|
|
27767
|
+
* ```
|
|
27762
27768
|
*/
|
|
27763
27769
|
formatPath(pathFormat = 'jsonpointer') {
|
|
27764
27770
|
const parts = this.getPathKeys();
|
|
@@ -27966,15 +27972,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27966
27972
|
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
|
|
27967
27973
|
|
|
27968
27974
|
/**
|
|
27969
|
-
* Finds all elements
|
|
27975
|
+
* Finds all paths whose elements match the predicate.
|
|
27970
27976
|
* @public
|
|
27971
27977
|
*/
|
|
27972
27978
|
const filter = (element, predicate) => {
|
|
27973
27979
|
const result = [];
|
|
27974
27980
|
(0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
|
|
27975
27981
|
enter(path) {
|
|
27976
|
-
if (predicate(path
|
|
27977
|
-
result.push(path
|
|
27982
|
+
if (predicate(path)) {
|
|
27983
|
+
result.push(path);
|
|
27978
27984
|
}
|
|
27979
27985
|
}
|
|
27980
27986
|
});
|
|
@@ -27999,7 +28005,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27999
28005
|
* @public
|
|
28000
28006
|
*/
|
|
28001
28007
|
/**
|
|
28002
|
-
* Finds the most inner node at the given offset.
|
|
28008
|
+
* Finds the path of the most inner node at the given offset.
|
|
28003
28009
|
* If includeRightBound is set, also finds nodes that end at the given offset.
|
|
28004
28010
|
* @public
|
|
28005
28011
|
*/
|
|
@@ -28024,7 +28030,7 @@ const findAtOffset = (element, options) => {
|
|
|
28024
28030
|
const endOffset = node.endOffset;
|
|
28025
28031
|
const isWithinOffsetRange = offset >= startOffset && (offset < endOffset || includeRightBound && offset <= endOffset);
|
|
28026
28032
|
if (isWithinOffsetRange) {
|
|
28027
|
-
result.push(
|
|
28033
|
+
result.push(path);
|
|
28028
28034
|
return; // push to stack and dive in
|
|
28029
28035
|
}
|
|
28030
28036
|
path.skip(); // skip entire sub-tree
|
|
@@ -28046,15 +28052,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28046
28052
|
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
|
|
28047
28053
|
|
|
28048
28054
|
/**
|
|
28049
|
-
*
|
|
28055
|
+
* Finds first path whose element satisfies the provided predicate.
|
|
28050
28056
|
* @public
|
|
28051
28057
|
*/
|
|
28052
28058
|
const find = (element, predicate) => {
|
|
28053
28059
|
let result;
|
|
28054
28060
|
(0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
|
|
28055
28061
|
enter(path) {
|
|
28056
|
-
if (predicate(path
|
|
28057
|
-
result = path
|
|
28062
|
+
if (predicate(path)) {
|
|
28063
|
+
result = path;
|
|
28058
28064
|
path.stop();
|
|
28059
28065
|
}
|
|
28060
28066
|
}
|
|
@@ -28072,9 +28078,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28072
28078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28073
28079
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
28074
28080
|
/* harmony export */ });
|
|
28075
|
-
/* harmony import */ var
|
|
28076
|
-
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2078);
|
|
28077
|
-
|
|
28081
|
+
/* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
|
|
28078
28082
|
|
|
28079
28083
|
/**
|
|
28080
28084
|
* @public
|
|
@@ -28083,7 +28087,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28083
28087
|
* @public
|
|
28084
28088
|
*/
|
|
28085
28089
|
/**
|
|
28086
|
-
* Executes the callback on this element and all
|
|
28090
|
+
* Executes the callback on this element's path and all descendant paths.
|
|
28087
28091
|
* @public
|
|
28088
28092
|
*/
|
|
28089
28093
|
const forEach = (element, options) => {
|
|
@@ -28091,15 +28095,15 @@ const forEach = (element, options) => {
|
|
|
28091
28095
|
let predicate;
|
|
28092
28096
|
if (typeof options === 'function') {
|
|
28093
28097
|
callback = options;
|
|
28094
|
-
predicate =
|
|
28098
|
+
predicate = () => true;
|
|
28095
28099
|
} else {
|
|
28096
28100
|
callback = options.callback ?? (() => {});
|
|
28097
|
-
predicate = options.predicate ??
|
|
28101
|
+
predicate = options.predicate ?? (() => true);
|
|
28098
28102
|
}
|
|
28099
|
-
(0,
|
|
28103
|
+
(0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
|
|
28100
28104
|
enter(path) {
|
|
28101
|
-
if (predicate(path
|
|
28102
|
-
callback(path
|
|
28105
|
+
if (predicate(path)) {
|
|
28106
|
+
callback(path);
|
|
28103
28107
|
}
|
|
28104
28108
|
}
|
|
28105
28109
|
});
|
|
@@ -28146,11 +28150,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28146
28150
|
/* harmony import */ var _filter_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5247);
|
|
28147
28151
|
|
|
28148
28152
|
/**
|
|
28149
|
-
* Complement of filter. Finds all elements NOT
|
|
28153
|
+
* Complement of filter. Finds all paths whose elements do NOT match the predicate.
|
|
28150
28154
|
* @public
|
|
28151
28155
|
*/
|
|
28152
28156
|
const reject = (element, predicate) => {
|
|
28153
|
-
return (0,_filter_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(element,
|
|
28157
|
+
return (0,_filter_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(element, path => !predicate(path));
|
|
28154
28158
|
};
|
|
28155
28159
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reject);
|
|
28156
28160
|
|
|
@@ -28166,7 +28170,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28166
28170
|
/* harmony import */ var _find_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4860);
|
|
28167
28171
|
|
|
28168
28172
|
/**
|
|
28169
|
-
* Tests whether at least one element passes the predicate.
|
|
28173
|
+
* Tests whether at least one path's element passes the predicate.
|
|
28170
28174
|
* @public
|
|
28171
28175
|
*/
|
|
28172
28176
|
const some = (element, predicate) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speclynx/apidom-ns-arazzo-1",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Arazzo Specification 1.0.1 namespace for ApiDOM.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apidom",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"license": "Apache-2.0",
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime-corejs3": "^7.28.4",
|
|
61
|
-
"@speclynx/apidom-core": "
|
|
62
|
-
"@speclynx/apidom-datamodel": "
|
|
63
|
-
"@speclynx/apidom-ns-json-schema-2020-12": "
|
|
64
|
-
"@speclynx/apidom-traverse": "
|
|
61
|
+
"@speclynx/apidom-core": "4.0.0",
|
|
62
|
+
"@speclynx/apidom-datamodel": "4.0.0",
|
|
63
|
+
"@speclynx/apidom-ns-json-schema-2020-12": "4.0.0",
|
|
64
|
+
"@speclynx/apidom-traverse": "4.0.0",
|
|
65
65
|
"ramda": "~0.32.0",
|
|
66
66
|
"ramda-adjunct": "^6.0.0",
|
|
67
67
|
"ts-mixer": "^6.0.4"
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"README.md",
|
|
77
77
|
"CHANGELOG.md"
|
|
78
78
|
],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "384ff82a1bb68d015fd6801de641898b4b582876"
|
|
80
80
|
}
|
package/src/elements/Arazzo.cjs
DELETED
|
@@ -1,17 +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 Arazzo extends _apidomDatamodel.StringElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'arazzo';
|
|
13
|
-
this.classes.push('spec-version');
|
|
14
|
-
this.classes.push('version');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
var _default = exports.default = Arazzo;
|
package/src/elements/Arazzo.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StringElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Arazzo extends StringElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'arazzo';
|
|
10
|
-
this.classes.push('spec-version');
|
|
11
|
-
this.classes.push('version');
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default Arazzo;
|
|
@@ -1,46 +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 ArazzoSpecification1 extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'arazzoSpecification1';
|
|
13
|
-
this.classes.push('api');
|
|
14
|
-
}
|
|
15
|
-
get arazzo() {
|
|
16
|
-
return this.get('arazzo');
|
|
17
|
-
}
|
|
18
|
-
set arazzo(arazzo) {
|
|
19
|
-
this.set('arazzo', arazzo);
|
|
20
|
-
}
|
|
21
|
-
get info() {
|
|
22
|
-
return this.get('info');
|
|
23
|
-
}
|
|
24
|
-
set info(info) {
|
|
25
|
-
this.set('info', info);
|
|
26
|
-
}
|
|
27
|
-
get sourceDescriptions() {
|
|
28
|
-
return this.get('sourceDescriptions');
|
|
29
|
-
}
|
|
30
|
-
set sourceDescriptions(sourceDescriptions) {
|
|
31
|
-
this.set('sourceDescriptions', sourceDescriptions);
|
|
32
|
-
}
|
|
33
|
-
get workflows() {
|
|
34
|
-
return this.get('workflows');
|
|
35
|
-
}
|
|
36
|
-
set workflows(workflows) {
|
|
37
|
-
this.set('workflows', workflows);
|
|
38
|
-
}
|
|
39
|
-
get components() {
|
|
40
|
-
return this.get('components');
|
|
41
|
-
}
|
|
42
|
-
set components(components) {
|
|
43
|
-
this.set('components', components);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
var _default = exports.default = ArazzoSpecification1;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class ArazzoSpecification1 extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'arazzoSpecification1';
|
|
9
|
-
this.classes.push('api');
|
|
10
|
-
}
|
|
11
|
-
get arazzo() {
|
|
12
|
-
return this.get('arazzo');
|
|
13
|
-
}
|
|
14
|
-
set arazzo(arazzo) {
|
|
15
|
-
this.set('arazzo', arazzo);
|
|
16
|
-
}
|
|
17
|
-
get info() {
|
|
18
|
-
return this.get('info');
|
|
19
|
-
}
|
|
20
|
-
set info(info) {
|
|
21
|
-
this.set('info', info);
|
|
22
|
-
}
|
|
23
|
-
get sourceDescriptions() {
|
|
24
|
-
return this.get('sourceDescriptions');
|
|
25
|
-
}
|
|
26
|
-
set sourceDescriptions(sourceDescriptions) {
|
|
27
|
-
this.set('sourceDescriptions', sourceDescriptions);
|
|
28
|
-
}
|
|
29
|
-
get workflows() {
|
|
30
|
-
return this.get('workflows');
|
|
31
|
-
}
|
|
32
|
-
set workflows(workflows) {
|
|
33
|
-
this.set('workflows', workflows);
|
|
34
|
-
}
|
|
35
|
-
get components() {
|
|
36
|
-
return this.get('components');
|
|
37
|
-
}
|
|
38
|
-
set components(components) {
|
|
39
|
-
this.set('components', components);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export default ArazzoSpecification1;
|
|
@@ -1,39 +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 Components extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'components';
|
|
13
|
-
}
|
|
14
|
-
get inputs() {
|
|
15
|
-
return this.get('inputs');
|
|
16
|
-
}
|
|
17
|
-
set inputs(inputs) {
|
|
18
|
-
this.set('inputs', inputs);
|
|
19
|
-
}
|
|
20
|
-
get parameters() {
|
|
21
|
-
return this.get('parameters');
|
|
22
|
-
}
|
|
23
|
-
set parameters(parameters) {
|
|
24
|
-
this.set('parameters', parameters);
|
|
25
|
-
}
|
|
26
|
-
get successActions() {
|
|
27
|
-
return this.get('successActions');
|
|
28
|
-
}
|
|
29
|
-
set successActions(successActions) {
|
|
30
|
-
this.set('successActions', successActions);
|
|
31
|
-
}
|
|
32
|
-
get failureActions() {
|
|
33
|
-
return this.get('failureActions');
|
|
34
|
-
}
|
|
35
|
-
set failureActions(failureActions) {
|
|
36
|
-
this.set('failureActions', failureActions);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
var _default = exports.default = Components;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Components extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'components';
|
|
9
|
-
}
|
|
10
|
-
get inputs() {
|
|
11
|
-
return this.get('inputs');
|
|
12
|
-
}
|
|
13
|
-
set inputs(inputs) {
|
|
14
|
-
this.set('inputs', inputs);
|
|
15
|
-
}
|
|
16
|
-
get parameters() {
|
|
17
|
-
return this.get('parameters');
|
|
18
|
-
}
|
|
19
|
-
set parameters(parameters) {
|
|
20
|
-
this.set('parameters', parameters);
|
|
21
|
-
}
|
|
22
|
-
get successActions() {
|
|
23
|
-
return this.get('successActions');
|
|
24
|
-
}
|
|
25
|
-
set successActions(successActions) {
|
|
26
|
-
this.set('successActions', successActions);
|
|
27
|
-
}
|
|
28
|
-
get failureActions() {
|
|
29
|
-
return this.get('failureActions');
|
|
30
|
-
}
|
|
31
|
-
set failureActions(failureActions) {
|
|
32
|
-
this.set('failureActions', failureActions);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export default Components;
|
|
@@ -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 Criterion extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'criterion';
|
|
13
|
-
}
|
|
14
|
-
get context() {
|
|
15
|
-
return this.get('context');
|
|
16
|
-
}
|
|
17
|
-
set context(context) {
|
|
18
|
-
this.set('context', context);
|
|
19
|
-
}
|
|
20
|
-
get condition() {
|
|
21
|
-
return this.get('condition');
|
|
22
|
-
}
|
|
23
|
-
set condition(condition) {
|
|
24
|
-
this.set('condition', condition);
|
|
25
|
-
}
|
|
26
|
-
get type() {
|
|
27
|
-
return this.get('type');
|
|
28
|
-
}
|
|
29
|
-
set type(type) {
|
|
30
|
-
this.set('type', type);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
var _default = exports.default = Criterion;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Criterion extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'criterion';
|
|
9
|
-
}
|
|
10
|
-
get context() {
|
|
11
|
-
return this.get('context');
|
|
12
|
-
}
|
|
13
|
-
set context(context) {
|
|
14
|
-
this.set('context', context);
|
|
15
|
-
}
|
|
16
|
-
get condition() {
|
|
17
|
-
return this.get('condition');
|
|
18
|
-
}
|
|
19
|
-
set condition(condition) {
|
|
20
|
-
this.set('condition', condition);
|
|
21
|
-
}
|
|
22
|
-
get type() {
|
|
23
|
-
return this.get('type');
|
|
24
|
-
}
|
|
25
|
-
set type(type) {
|
|
26
|
-
this.set('type', type);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export default Criterion;
|
|
@@ -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 CriterionExpressionType extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'criterionExpressionType';
|
|
13
|
-
}
|
|
14
|
-
get type() {
|
|
15
|
-
return this.get('type');
|
|
16
|
-
}
|
|
17
|
-
set type(type) {
|
|
18
|
-
this.set('type', type);
|
|
19
|
-
}
|
|
20
|
-
get version() {
|
|
21
|
-
return this.get('version');
|
|
22
|
-
}
|
|
23
|
-
set version(version) {
|
|
24
|
-
this.set('version', version);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
var _default = exports.default = CriterionExpressionType;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class CriterionExpressionType extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'criterionExpressionType';
|
|
10
|
-
}
|
|
11
|
-
get type() {
|
|
12
|
-
return this.get('type');
|
|
13
|
-
}
|
|
14
|
-
set type(type) {
|
|
15
|
-
this.set('type', type);
|
|
16
|
-
}
|
|
17
|
-
get version() {
|
|
18
|
-
return this.get('version');
|
|
19
|
-
}
|
|
20
|
-
set version(version) {
|
|
21
|
-
this.set('version', version);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export default CriterionExpressionType;
|
|
@@ -1,57 +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 FailureAction extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'failureAction';
|
|
13
|
-
}
|
|
14
|
-
get name() {
|
|
15
|
-
return this.get('name');
|
|
16
|
-
}
|
|
17
|
-
set name(name) {
|
|
18
|
-
this.set('name', name);
|
|
19
|
-
}
|
|
20
|
-
get type() {
|
|
21
|
-
return this.get('type');
|
|
22
|
-
}
|
|
23
|
-
set type(type) {
|
|
24
|
-
this.set('type', type);
|
|
25
|
-
}
|
|
26
|
-
get workflowId() {
|
|
27
|
-
return this.get('workflowId');
|
|
28
|
-
}
|
|
29
|
-
set workflowId(workflowId) {
|
|
30
|
-
this.set('workflowId', workflowId);
|
|
31
|
-
}
|
|
32
|
-
get stepId() {
|
|
33
|
-
return this.get('stepId');
|
|
34
|
-
}
|
|
35
|
-
set stepId(stepId) {
|
|
36
|
-
this.set('stepId', stepId);
|
|
37
|
-
}
|
|
38
|
-
get retryAfter() {
|
|
39
|
-
return this.get('retryAfter');
|
|
40
|
-
}
|
|
41
|
-
set retryAfter(retryAfter) {
|
|
42
|
-
this.set('retryAfter', retryAfter);
|
|
43
|
-
}
|
|
44
|
-
get retryLimit() {
|
|
45
|
-
return this.get('retryLimit');
|
|
46
|
-
}
|
|
47
|
-
set retryLimit(retryLimit) {
|
|
48
|
-
this.set('retryLimit', retryLimit);
|
|
49
|
-
}
|
|
50
|
-
get criteria() {
|
|
51
|
-
return this.get('criteria');
|
|
52
|
-
}
|
|
53
|
-
set criteria(criteria) {
|
|
54
|
-
this.set('criteria', criteria);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
var _default = exports.default = FailureAction;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class FailureAction extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'failureAction';
|
|
9
|
-
}
|
|
10
|
-
get name() {
|
|
11
|
-
return this.get('name');
|
|
12
|
-
}
|
|
13
|
-
set name(name) {
|
|
14
|
-
this.set('name', name);
|
|
15
|
-
}
|
|
16
|
-
get type() {
|
|
17
|
-
return this.get('type');
|
|
18
|
-
}
|
|
19
|
-
set type(type) {
|
|
20
|
-
this.set('type', type);
|
|
21
|
-
}
|
|
22
|
-
get workflowId() {
|
|
23
|
-
return this.get('workflowId');
|
|
24
|
-
}
|
|
25
|
-
set workflowId(workflowId) {
|
|
26
|
-
this.set('workflowId', workflowId);
|
|
27
|
-
}
|
|
28
|
-
get stepId() {
|
|
29
|
-
return this.get('stepId');
|
|
30
|
-
}
|
|
31
|
-
set stepId(stepId) {
|
|
32
|
-
this.set('stepId', stepId);
|
|
33
|
-
}
|
|
34
|
-
get retryAfter() {
|
|
35
|
-
return this.get('retryAfter');
|
|
36
|
-
}
|
|
37
|
-
set retryAfter(retryAfter) {
|
|
38
|
-
this.set('retryAfter', retryAfter);
|
|
39
|
-
}
|
|
40
|
-
get retryLimit() {
|
|
41
|
-
return this.get('retryLimit');
|
|
42
|
-
}
|
|
43
|
-
set retryLimit(retryLimit) {
|
|
44
|
-
this.set('retryLimit', retryLimit);
|
|
45
|
-
}
|
|
46
|
-
get criteria() {
|
|
47
|
-
return this.get('criteria');
|
|
48
|
-
}
|
|
49
|
-
set criteria(criteria) {
|
|
50
|
-
this.set('criteria', criteria);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
export default FailureAction;
|
package/src/elements/Info.cjs
DELETED
|
@@ -1,40 +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 Info extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'info';
|
|
13
|
-
this.classes.push('info');
|
|
14
|
-
}
|
|
15
|
-
get title() {
|
|
16
|
-
return this.get('title');
|
|
17
|
-
}
|
|
18
|
-
set title(title) {
|
|
19
|
-
this.set('title', title);
|
|
20
|
-
}
|
|
21
|
-
get summary() {
|
|
22
|
-
return this.get('summary');
|
|
23
|
-
}
|
|
24
|
-
set summary(summary) {
|
|
25
|
-
this.set('summary', summary);
|
|
26
|
-
}
|
|
27
|
-
get description() {
|
|
28
|
-
return this.get('description');
|
|
29
|
-
}
|
|
30
|
-
set description(description) {
|
|
31
|
-
this.set('description', description);
|
|
32
|
-
}
|
|
33
|
-
get version() {
|
|
34
|
-
return this.get('version');
|
|
35
|
-
}
|
|
36
|
-
set version(version) {
|
|
37
|
-
this.set('version', version);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
var _default = exports.default = Info;
|