@speclynx/apidom-ns-json-schema-2019-09 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.
Files changed (53) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/apidom-ns-json-schema-2019-09.browser.js +24 -20
  3. package/package.json +8 -8
  4. package/src/elements/JSONSchema.cjs +0 -214
  5. package/src/elements/JSONSchema.mjs +0 -210
  6. package/src/elements/LinkDescription.cjs +0 -53
  7. package/src/elements/LinkDescription.mjs +0 -49
  8. package/src/index.cjs +0 -66
  9. package/src/index.mjs +0 -25
  10. package/src/media-types.cjs +0 -34
  11. package/src/media-types.mjs +0 -30
  12. package/src/namespace.cjs +0 -21
  13. package/src/namespace.mjs +0 -16
  14. package/src/predicates.cjs +0 -23
  15. package/src/predicates.mjs +0 -14
  16. package/src/refractor/index.cjs +0 -76
  17. package/src/refractor/index.mjs +0 -67
  18. package/src/refractor/inspect.cjs +0 -43
  19. package/src/refractor/inspect.mjs +0 -37
  20. package/src/refractor/plugins/replace-empty-element.cjs +0 -265
  21. package/src/refractor/plugins/replace-empty-element.mjs +0 -258
  22. package/src/refractor/specification.cjs +0 -29
  23. package/src/refractor/specification.mjs +0 -24
  24. package/src/refractor/toolbox.cjs +0 -26
  25. package/src/refractor/toolbox.mjs +0 -19
  26. package/src/refractor/visitors/json-schema/$defsVisitor.cjs +0 -23
  27. package/src/refractor/visitors/json-schema/$defsVisitor.mjs +0 -18
  28. package/src/refractor/visitors/json-schema/$refVisitor.cjs +0 -15
  29. package/src/refractor/visitors/json-schema/$refVisitor.mjs +0 -11
  30. package/src/refractor/visitors/json-schema/$vocabularyVisitor.cjs +0 -15
  31. package/src/refractor/visitors/json-schema/$vocabularyVisitor.mjs +0 -11
  32. package/src/refractor/visitors/json-schema/AllOfVisitor.cjs +0 -30
  33. package/src/refractor/visitors/json-schema/AllOfVisitor.mjs +0 -25
  34. package/src/refractor/visitors/json-schema/AnyOfVisitor.cjs +0 -30
  35. package/src/refractor/visitors/json-schema/AnyOfVisitor.mjs +0 -25
  36. package/src/refractor/visitors/json-schema/DependentRequiredVisitor.cjs +0 -15
  37. package/src/refractor/visitors/json-schema/DependentRequiredVisitor.mjs +0 -11
  38. package/src/refractor/visitors/json-schema/DependentSchemasVisitor.cjs +0 -23
  39. package/src/refractor/visitors/json-schema/DependentSchemasVisitor.mjs +0 -18
  40. package/src/refractor/visitors/json-schema/ItemsVisitor.cjs +0 -35
  41. package/src/refractor/visitors/json-schema/ItemsVisitor.mjs +0 -30
  42. package/src/refractor/visitors/json-schema/OneOfVisitor.cjs +0 -30
  43. package/src/refractor/visitors/json-schema/OneOfVisitor.mjs +0 -25
  44. package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.cjs +0 -23
  45. package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.mjs +0 -18
  46. package/src/refractor/visitors/json-schema/PropertiesVisitor.cjs +0 -23
  47. package/src/refractor/visitors/json-schema/PropertiesVisitor.mjs +0 -18
  48. package/src/refractor/visitors/json-schema/bases.cjs +0 -23
  49. package/src/refractor/visitors/json-schema/bases.mjs +0 -20
  50. package/src/refractor/visitors/json-schema/index.cjs +0 -36
  51. package/src/refractor/visitors/json-schema/index.mjs +0 -31
  52. package/src/refractor/visitors/json-schema/link-description/index.cjs +0 -17
  53. package/src/refractor/visitors/json-schema/link-description/index.mjs +0 -12
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-json-schema-2019-09
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
@@ -23407,7 +23407,9 @@ class Path {
23407
23407
  *
23408
23408
  * @example
23409
23409
  * // For a path to $.paths['/pets'].get in an OpenAPI document:
23410
+ * ```
23410
23411
  * path.getPathKeys(); // => ['paths', '/pets', 'get']
23412
+ * ```
23411
23413
  */
23412
23414
  getPathKeys() {
23413
23415
  const keys = [];
@@ -23442,18 +23444,22 @@ class Path {
23442
23444
  * or Normalized JSONPath like "$['paths']['/pets']['get']['responses']['200']"
23443
23445
  *
23444
23446
  * @example
23447
+ * ```
23445
23448
  * // JSON Pointer examples:
23446
23449
  * path.formatPath(); // "" (root)
23447
23450
  * path.formatPath(); // "/info"
23448
23451
  * path.formatPath(); // "/paths/~1pets/get"
23449
23452
  * path.formatPath(); // "/paths/~1users~1{id}/parameters/0"
23453
+ * ```
23450
23454
  *
23451
23455
  * @example
23456
+ * ```
23452
23457
  * // JSONPath examples:
23453
23458
  * path.formatPath('jsonpath'); // "$" (root)
23454
23459
  * path.formatPath('jsonpath'); // "$['info']"
23455
23460
  * path.formatPath('jsonpath'); // "$['paths']['/pets']['get']"
23456
23461
  * path.formatPath('jsonpath'); // "$['paths']['/users/{id}']['parameters'][0]"
23462
+ * ```
23457
23463
  */
23458
23464
  formatPath(pathFormat = 'jsonpointer') {
23459
23465
  const parts = this.getPathKeys();
@@ -23661,15 +23667,15 @@ __webpack_require__.r(__webpack_exports__);
23661
23667
  /* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
23662
23668
 
23663
23669
  /**
23664
- * Finds all elements matching the predicate.
23670
+ * Finds all paths whose elements match the predicate.
23665
23671
  * @public
23666
23672
  */
23667
23673
  const filter = (element, predicate) => {
23668
23674
  const result = [];
23669
23675
  (0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
23670
23676
  enter(path) {
23671
- if (predicate(path.node)) {
23672
- result.push(path.node);
23677
+ if (predicate(path)) {
23678
+ result.push(path);
23673
23679
  }
23674
23680
  }
23675
23681
  });
@@ -23694,7 +23700,7 @@ __webpack_require__.r(__webpack_exports__);
23694
23700
  * @public
23695
23701
  */
23696
23702
  /**
23697
- * Finds the most inner node at the given offset.
23703
+ * Finds the path of the most inner node at the given offset.
23698
23704
  * If includeRightBound is set, also finds nodes that end at the given offset.
23699
23705
  * @public
23700
23706
  */
@@ -23719,7 +23725,7 @@ const findAtOffset = (element, options) => {
23719
23725
  const endOffset = node.endOffset;
23720
23726
  const isWithinOffsetRange = offset >= startOffset && (offset < endOffset || includeRightBound && offset <= endOffset);
23721
23727
  if (isWithinOffsetRange) {
23722
- result.push(node);
23728
+ result.push(path);
23723
23729
  return; // push to stack and dive in
23724
23730
  }
23725
23731
  path.skip(); // skip entire sub-tree
@@ -23741,15 +23747,15 @@ __webpack_require__.r(__webpack_exports__);
23741
23747
  /* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
23742
23748
 
23743
23749
  /**
23744
- * Find first element that satisfies the provided predicate.
23750
+ * Finds first path whose element satisfies the provided predicate.
23745
23751
  * @public
23746
23752
  */
23747
23753
  const find = (element, predicate) => {
23748
23754
  let result;
23749
23755
  (0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
23750
23756
  enter(path) {
23751
- if (predicate(path.node)) {
23752
- result = path.node;
23757
+ if (predicate(path)) {
23758
+ result = path;
23753
23759
  path.stop();
23754
23760
  }
23755
23761
  }
@@ -23767,9 +23773,7 @@ __webpack_require__.r(__webpack_exports__);
23767
23773
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23768
23774
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
23769
23775
  /* harmony export */ });
23770
- /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5162);
23771
- /* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2078);
23772
-
23776
+ /* harmony import */ var _traversal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2078);
23773
23777
 
23774
23778
  /**
23775
23779
  * @public
@@ -23778,7 +23782,7 @@ __webpack_require__.r(__webpack_exports__);
23778
23782
  * @public
23779
23783
  */
23780
23784
  /**
23781
- * Executes the callback on this element and all descendants.
23785
+ * Executes the callback on this element's path and all descendant paths.
23782
23786
  * @public
23783
23787
  */
23784
23788
  const forEach = (element, options) => {
@@ -23786,15 +23790,15 @@ const forEach = (element, options) => {
23786
23790
  let predicate;
23787
23791
  if (typeof options === 'function') {
23788
23792
  callback = options;
23789
- predicate = _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isElement;
23793
+ predicate = () => true;
23790
23794
  } else {
23791
23795
  callback = options.callback ?? (() => {});
23792
- predicate = options.predicate ?? _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isElement;
23796
+ predicate = options.predicate ?? (() => true);
23793
23797
  }
23794
- (0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_1__.traverse)(element, {
23798
+ (0,_traversal_mjs__WEBPACK_IMPORTED_MODULE_0__.traverse)(element, {
23795
23799
  enter(path) {
23796
- if (predicate(path.node)) {
23797
- callback(path.node);
23800
+ if (predicate(path)) {
23801
+ callback(path);
23798
23802
  }
23799
23803
  }
23800
23804
  });
@@ -23841,11 +23845,11 @@ __webpack_require__.r(__webpack_exports__);
23841
23845
  /* harmony import */ var _filter_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5247);
23842
23846
 
23843
23847
  /**
23844
- * Complement of filter. Finds all elements NOT matching the predicate.
23848
+ * Complement of filter. Finds all paths whose elements do NOT match the predicate.
23845
23849
  * @public
23846
23850
  */
23847
23851
  const reject = (element, predicate) => {
23848
- return (0,_filter_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(element, el => !predicate(el));
23852
+ return (0,_filter_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(element, path => !predicate(path));
23849
23853
  };
23850
23854
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reject);
23851
23855
 
@@ -23861,7 +23865,7 @@ __webpack_require__.r(__webpack_exports__);
23861
23865
  /* harmony import */ var _find_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4860);
23862
23866
 
23863
23867
  /**
23864
- * Tests whether at least one element passes the predicate.
23868
+ * Tests whether at least one path's element passes the predicate.
23865
23869
  * @public
23866
23870
  */
23867
23871
  const some = (element, predicate) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speclynx/apidom-ns-json-schema-2019-09",
3
- "version": "3.2.0",
3
+ "version": "4.0.0",
4
4
  "description": "JSON Schema 2019-09 namespace for ApiDOM.",
5
5
  "keywords": [
6
6
  "apidom",
@@ -57,12 +57,12 @@
57
57
  "license": "Apache-2.0",
58
58
  "dependencies": {
59
59
  "@babel/runtime-corejs3": "^7.28.4",
60
- "@speclynx/apidom-core": "3.2.0",
61
- "@speclynx/apidom-datamodel": "3.2.0",
62
- "@speclynx/apidom-error": "3.2.0",
63
- "@speclynx/apidom-ns-json-schema-draft-6": "3.2.0",
64
- "@speclynx/apidom-ns-json-schema-draft-7": "3.2.0",
65
- "@speclynx/apidom-traverse": "3.2.0",
60
+ "@speclynx/apidom-core": "4.0.0",
61
+ "@speclynx/apidom-datamodel": "4.0.0",
62
+ "@speclynx/apidom-error": "4.0.0",
63
+ "@speclynx/apidom-ns-json-schema-draft-6": "4.0.0",
64
+ "@speclynx/apidom-ns-json-schema-draft-7": "4.0.0",
65
+ "@speclynx/apidom-traverse": "4.0.0",
66
66
  "ramda": "~0.32.0",
67
67
  "ramda-adjunct": "^6.0.0",
68
68
  "ts-mixer": "^6.0.4"
@@ -77,5 +77,5 @@
77
77
  "README.md",
78
78
  "CHANGELOG.md"
79
79
  ],
80
- "gitHead": "eeb2f01cd34fb0a95617f02bc1b6683aefc028f2"
80
+ "gitHead": "384ff82a1bb68d015fd6801de641898b4b582876"
81
81
  }
@@ -1,214 +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-7");
7
- /**
8
- * @public
9
- */
10
- class JSONSchema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
11
- constructor(content, meta, attributes) {
12
- super(content, meta, attributes);
13
- this.element = 'JSONSchema201909';
14
- }
15
-
16
- /**
17
- * Core vocabulary
18
- *
19
- * URI: https://json-schema.org/draft/2019-09/vocab/core
20
- */
21
-
22
- get $vocabulary() {
23
- return this.get('$vocabulary');
24
- }
25
- set $vocabulary($vocabulary) {
26
- this.set('$vocabulary', $vocabulary);
27
- }
28
- get $anchor() {
29
- return this.get('$anchor');
30
- }
31
- set $anchor($anchor) {
32
- this.set('$anchor', $anchor);
33
- }
34
- get $recursiveAnchor() {
35
- return this.get('$recursiveAnchor');
36
- }
37
- set $recursiveAnchor($recursiveAnchor) {
38
- this.set('$recursiveAnchor', $recursiveAnchor);
39
- }
40
- get $recursiveRef() {
41
- return this.get('$recursiveRef');
42
- }
43
- set $recursiveRef($recursiveRef) {
44
- this.set('$recursiveRef', $recursiveRef);
45
- }
46
- get $ref() {
47
- return this.get('$ref');
48
- }
49
- set $ref($ref) {
50
- this.set('$ref', $ref);
51
- }
52
- get $defs() {
53
- return this.get('$defs');
54
- }
55
- set $defs($defs) {
56
- this.set('$defs', $defs);
57
- }
58
- get definitions() {
59
- throw new _apidomError.UnsupportedOperationError('definitions keyword from Validation vocabulary has been renamed to $defs.');
60
- }
61
- set definitions(_definitions) {
62
- throw new _apidomError.UnsupportedOperationError('definitions keyword from Validation vocabulary has been renamed to $defs.');
63
- }
64
-
65
- /**
66
- * Applicator vocabulary
67
- *
68
- * URI: https://json-schema.org/draft/2019-09/vocab/applicator
69
- */
70
-
71
- get not() {
72
- return this.get('not');
73
- }
74
- set not(not) {
75
- this.set('not', not);
76
- }
77
- get if() {
78
- return this.get('if');
79
- }
80
- set if(ifSchema) {
81
- this.set('if', ifSchema);
82
- }
83
- get then() {
84
- return this.get('then');
85
- }
86
- set then(thenSchema) {
87
- this.set('then', thenSchema);
88
- }
89
- get else() {
90
- return this.get('else');
91
- }
92
- set else(elseSchema) {
93
- this.set('else', elseSchema);
94
- }
95
- get dependentSchemas() {
96
- return this.get('dependentSchemas');
97
- }
98
- set dependentSchemas(dependentSchemas) {
99
- this.set('dependentSchemas', dependentSchemas);
100
- }
101
- get dependencies() {
102
- throw new _apidomError.UnsupportedOperationError('dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.');
103
- }
104
- set dependencies(_dependencies) {
105
- throw new _apidomError.UnsupportedOperationError('dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.');
106
- }
107
- get itemsField() {
108
- return this.get('items');
109
- }
110
- set itemsField(items) {
111
- this.set('items', items);
112
- }
113
- get contains() {
114
- return this.get('contains');
115
- }
116
- set contains(contains) {
117
- this.set('contains', contains);
118
- }
119
- get additionalProperties() {
120
- return this.get('additionalProperties');
121
- }
122
- set additionalProperties(additionalProperties) {
123
- this.set('additionalProperties', additionalProperties);
124
- }
125
- get additionalItems() {
126
- return this.get('additionalItems');
127
- }
128
- set additionalItems(additionalItems) {
129
- this.set('additionalItems', additionalItems);
130
- }
131
- get propertyNames() {
132
- return this.get('propertyNames');
133
- }
134
- set propertyNames(propertyNames) {
135
- this.set('propertyNames', propertyNames);
136
- }
137
- get unevaluatedItems() {
138
- return this.get('unevaluatedItems');
139
- }
140
- set unevaluatedItems(unevaluatedItems) {
141
- this.set('unevaluatedItems', unevaluatedItems);
142
- }
143
- get unevaluatedProperties() {
144
- return this.get('unevaluatedProperties');
145
- }
146
- set unevaluatedProperties(unevaluatedProperties) {
147
- this.set('unevaluatedProperties', unevaluatedProperties);
148
- }
149
-
150
- /**
151
- * Validation vocabulary
152
- *
153
- * URI: https://json-schema.org/draft/2019-09/json-schema-validation#rfc.section.6
154
- */
155
-
156
- /**
157
- * Validation Keywords for Arrays
158
- *
159
- * URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.4
160
- */
161
-
162
- get maxContains() {
163
- return this.get('maxContains');
164
- }
165
- set maxContains(maxContains) {
166
- this.set('maxContains', maxContains);
167
- }
168
- get minContains() {
169
- return this.get('minContains');
170
- }
171
- set minContains(minContains) {
172
- this.set('minContains', minContains);
173
- }
174
-
175
- /**
176
- * Validation Keywords for Objects
177
- *
178
- * URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.5
179
- */
180
-
181
- get dependentRequired() {
182
- return this.get('dependentRequired');
183
- }
184
- set dependentRequired(dependentRequired) {
185
- this.set('dependentRequired', dependentRequired);
186
- }
187
-
188
- /**
189
- * Vocabulary for Basic Meta-Data Annotations
190
- *
191
- * URI: https://json-schema.org/draft/2019-09/vocab/meta-data
192
- */
193
-
194
- get deprecated() {
195
- return this.get('deprecated');
196
- }
197
- set deprecated(deprecated) {
198
- this.set('deprecated', deprecated);
199
- }
200
-
201
- /**
202
- * Vocabulary for the Contents of String-Encoded Data
203
- *
204
- * URI: https://json-schema.org/draft/2019-09/vocab/content
205
- */
206
-
207
- get contentSchema() {
208
- return this.get('contentSchema');
209
- }
210
- set contentSchema(contentSchema) {
211
- this.set('contentSchema', contentSchema);
212
- }
213
- }
214
- var _default = exports.default = JSONSchema;
@@ -1,210 +0,0 @@
1
- import { UnsupportedOperationError } from '@speclynx/apidom-error';
2
- import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-draft-7';
3
- /**
4
- * @public
5
- */
6
- class JSONSchema extends JSONSchemaElement {
7
- constructor(content, meta, attributes) {
8
- super(content, meta, attributes);
9
- this.element = 'JSONSchema201909';
10
- }
11
-
12
- /**
13
- * Core vocabulary
14
- *
15
- * URI: https://json-schema.org/draft/2019-09/vocab/core
16
- */
17
-
18
- get $vocabulary() {
19
- return this.get('$vocabulary');
20
- }
21
- set $vocabulary($vocabulary) {
22
- this.set('$vocabulary', $vocabulary);
23
- }
24
- get $anchor() {
25
- return this.get('$anchor');
26
- }
27
- set $anchor($anchor) {
28
- this.set('$anchor', $anchor);
29
- }
30
- get $recursiveAnchor() {
31
- return this.get('$recursiveAnchor');
32
- }
33
- set $recursiveAnchor($recursiveAnchor) {
34
- this.set('$recursiveAnchor', $recursiveAnchor);
35
- }
36
- get $recursiveRef() {
37
- return this.get('$recursiveRef');
38
- }
39
- set $recursiveRef($recursiveRef) {
40
- this.set('$recursiveRef', $recursiveRef);
41
- }
42
- get $ref() {
43
- return this.get('$ref');
44
- }
45
- set $ref($ref) {
46
- this.set('$ref', $ref);
47
- }
48
- get $defs() {
49
- return this.get('$defs');
50
- }
51
- set $defs($defs) {
52
- this.set('$defs', $defs);
53
- }
54
- get definitions() {
55
- throw new UnsupportedOperationError('definitions keyword from Validation vocabulary has been renamed to $defs.');
56
- }
57
- set definitions(_definitions) {
58
- throw new UnsupportedOperationError('definitions keyword from Validation vocabulary has been renamed to $defs.');
59
- }
60
-
61
- /**
62
- * Applicator vocabulary
63
- *
64
- * URI: https://json-schema.org/draft/2019-09/vocab/applicator
65
- */
66
-
67
- get not() {
68
- return this.get('not');
69
- }
70
- set not(not) {
71
- this.set('not', not);
72
- }
73
- get if() {
74
- return this.get('if');
75
- }
76
- set if(ifSchema) {
77
- this.set('if', ifSchema);
78
- }
79
- get then() {
80
- return this.get('then');
81
- }
82
- set then(thenSchema) {
83
- this.set('then', thenSchema);
84
- }
85
- get else() {
86
- return this.get('else');
87
- }
88
- set else(elseSchema) {
89
- this.set('else', elseSchema);
90
- }
91
- get dependentSchemas() {
92
- return this.get('dependentSchemas');
93
- }
94
- set dependentSchemas(dependentSchemas) {
95
- this.set('dependentSchemas', dependentSchemas);
96
- }
97
- get dependencies() {
98
- throw new UnsupportedOperationError('dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.');
99
- }
100
- set dependencies(_dependencies) {
101
- throw new UnsupportedOperationError('dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.');
102
- }
103
- get itemsField() {
104
- return this.get('items');
105
- }
106
- set itemsField(items) {
107
- this.set('items', items);
108
- }
109
- get contains() {
110
- return this.get('contains');
111
- }
112
- set contains(contains) {
113
- this.set('contains', contains);
114
- }
115
- get additionalProperties() {
116
- return this.get('additionalProperties');
117
- }
118
- set additionalProperties(additionalProperties) {
119
- this.set('additionalProperties', additionalProperties);
120
- }
121
- get additionalItems() {
122
- return this.get('additionalItems');
123
- }
124
- set additionalItems(additionalItems) {
125
- this.set('additionalItems', additionalItems);
126
- }
127
- get propertyNames() {
128
- return this.get('propertyNames');
129
- }
130
- set propertyNames(propertyNames) {
131
- this.set('propertyNames', propertyNames);
132
- }
133
- get unevaluatedItems() {
134
- return this.get('unevaluatedItems');
135
- }
136
- set unevaluatedItems(unevaluatedItems) {
137
- this.set('unevaluatedItems', unevaluatedItems);
138
- }
139
- get unevaluatedProperties() {
140
- return this.get('unevaluatedProperties');
141
- }
142
- set unevaluatedProperties(unevaluatedProperties) {
143
- this.set('unevaluatedProperties', unevaluatedProperties);
144
- }
145
-
146
- /**
147
- * Validation vocabulary
148
- *
149
- * URI: https://json-schema.org/draft/2019-09/json-schema-validation#rfc.section.6
150
- */
151
-
152
- /**
153
- * Validation Keywords for Arrays
154
- *
155
- * URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.4
156
- */
157
-
158
- get maxContains() {
159
- return this.get('maxContains');
160
- }
161
- set maxContains(maxContains) {
162
- this.set('maxContains', maxContains);
163
- }
164
- get minContains() {
165
- return this.get('minContains');
166
- }
167
- set minContains(minContains) {
168
- this.set('minContains', minContains);
169
- }
170
-
171
- /**
172
- * Validation Keywords for Objects
173
- *
174
- * URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.5
175
- */
176
-
177
- get dependentRequired() {
178
- return this.get('dependentRequired');
179
- }
180
- set dependentRequired(dependentRequired) {
181
- this.set('dependentRequired', dependentRequired);
182
- }
183
-
184
- /**
185
- * Vocabulary for Basic Meta-Data Annotations
186
- *
187
- * URI: https://json-schema.org/draft/2019-09/vocab/meta-data
188
- */
189
-
190
- get deprecated() {
191
- return this.get('deprecated');
192
- }
193
- set deprecated(deprecated) {
194
- this.set('deprecated', deprecated);
195
- }
196
-
197
- /**
198
- * Vocabulary for the Contents of String-Encoded Data
199
- *
200
- * URI: https://json-schema.org/draft/2019-09/vocab/content
201
- */
202
-
203
- get contentSchema() {
204
- return this.get('contentSchema');
205
- }
206
- set contentSchema(contentSchema) {
207
- this.set('contentSchema', contentSchema);
208
- }
209
- }
210
- export default JSONSchema;
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-7");
6
- /**
7
- * URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-hyperschema-02#rfc.section.6
8
- * @public
9
- */
10
-
11
- class LinkDescription extends _apidomNsJsonSchemaDraft.LinkDescriptionElement {
12
- constructor(content, meta, attributes) {
13
- super(content, meta, attributes);
14
- this.element = 'linkDescription';
15
- }
16
-
17
- /**
18
- * Link Target Attributes.
19
- *
20
- * URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-hyperschema-02#rfc.section.6.5
21
- */
22
- get targetSchema() {
23
- return this.get('targetSchema');
24
- }
25
- set targetSchema(targetSchema) {
26
- this.set('targetSchema', targetSchema);
27
- }
28
-
29
- /**
30
- * Link Input.
31
- *
32
- * URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-hyperschema-02#input
33
- */
34
- get hrefSchema() {
35
- return this.get('hrefSchema');
36
- }
37
- set hrefSchema(hrefSchema) {
38
- this.set('hrefSchema', hrefSchema);
39
- }
40
- get headerSchema() {
41
- return this.get('headerSchema');
42
- }
43
- set headerSchema(headerSchema) {
44
- this.set('headerSchema', headerSchema);
45
- }
46
- get submissionSchema() {
47
- return this.get('submissionSchema');
48
- }
49
- set submissionSchema(submissionSchema) {
50
- this.set('submissionSchema', submissionSchema);
51
- }
52
- }
53
- var _default = exports.default = LinkDescription;