@speclynx/apidom-ns-json-schema-2019-09 4.0.2 → 4.0.3

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 (77) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +9 -10
  3. package/src/elements/JSONSchema.cjs +214 -0
  4. package/src/elements/JSONSchema.mjs +210 -0
  5. package/src/elements/JSONSchema.ts +310 -0
  6. package/src/elements/LinkDescription.cjs +53 -0
  7. package/src/elements/LinkDescription.mjs +49 -0
  8. package/src/elements/LinkDescription.ts +63 -0
  9. package/src/index.cjs +66 -0
  10. package/src/index.mjs +25 -0
  11. package/src/index.ts +86 -0
  12. package/src/media-types.cjs +34 -0
  13. package/src/media-types.mjs +30 -0
  14. package/src/media-types.ts +40 -0
  15. package/src/namespace.cjs +21 -0
  16. package/src/namespace.mjs +16 -0
  17. package/src/namespace.ts +20 -0
  18. package/src/predicates.cjs +23 -0
  19. package/src/predicates.mjs +14 -0
  20. package/src/predicates.ts +20 -0
  21. package/src/refractor/index.cjs +76 -0
  22. package/src/refractor/index.mjs +67 -0
  23. package/src/refractor/index.ts +90 -0
  24. package/src/refractor/inspect.cjs +43 -0
  25. package/src/refractor/inspect.mjs +37 -0
  26. package/src/refractor/inspect.ts +49 -0
  27. package/src/refractor/plugins/replace-empty-element.cjs +265 -0
  28. package/src/refractor/plugins/replace-empty-element.mjs +258 -0
  29. package/src/refractor/plugins/replace-empty-element.ts +289 -0
  30. package/src/refractor/specification.cjs +29 -0
  31. package/src/refractor/specification.mjs +24 -0
  32. package/src/refractor/specification.ts +161 -0
  33. package/src/refractor/toolbox.cjs +26 -0
  34. package/src/refractor/toolbox.mjs +19 -0
  35. package/src/refractor/toolbox.ts +23 -0
  36. package/src/refractor/visitors/json-schema/$defsVisitor.cjs +23 -0
  37. package/src/refractor/visitors/json-schema/$defsVisitor.mjs +18 -0
  38. package/src/refractor/visitors/json-schema/$defsVisitor.ts +28 -0
  39. package/src/refractor/visitors/json-schema/$refVisitor.cjs +15 -0
  40. package/src/refractor/visitors/json-schema/$refVisitor.mjs +11 -0
  41. package/src/refractor/visitors/json-schema/$refVisitor.ts +19 -0
  42. package/src/refractor/visitors/json-schema/$vocabularyVisitor.cjs +15 -0
  43. package/src/refractor/visitors/json-schema/$vocabularyVisitor.mjs +11 -0
  44. package/src/refractor/visitors/json-schema/$vocabularyVisitor.ts +19 -0
  45. package/src/refractor/visitors/json-schema/AllOfVisitor.cjs +30 -0
  46. package/src/refractor/visitors/json-schema/AllOfVisitor.mjs +25 -0
  47. package/src/refractor/visitors/json-schema/AllOfVisitor.ts +38 -0
  48. package/src/refractor/visitors/json-schema/AnyOfVisitor.cjs +30 -0
  49. package/src/refractor/visitors/json-schema/AnyOfVisitor.mjs +25 -0
  50. package/src/refractor/visitors/json-schema/AnyOfVisitor.ts +38 -0
  51. package/src/refractor/visitors/json-schema/DependentRequiredVisitor.cjs +15 -0
  52. package/src/refractor/visitors/json-schema/DependentRequiredVisitor.mjs +11 -0
  53. package/src/refractor/visitors/json-schema/DependentRequiredVisitor.ts +19 -0
  54. package/src/refractor/visitors/json-schema/DependentSchemasVisitor.cjs +23 -0
  55. package/src/refractor/visitors/json-schema/DependentSchemasVisitor.mjs +18 -0
  56. package/src/refractor/visitors/json-schema/DependentSchemasVisitor.ts +28 -0
  57. package/src/refractor/visitors/json-schema/ItemsVisitor.cjs +35 -0
  58. package/src/refractor/visitors/json-schema/ItemsVisitor.mjs +30 -0
  59. package/src/refractor/visitors/json-schema/ItemsVisitor.ts +47 -0
  60. package/src/refractor/visitors/json-schema/OneOfVisitor.cjs +30 -0
  61. package/src/refractor/visitors/json-schema/OneOfVisitor.mjs +25 -0
  62. package/src/refractor/visitors/json-schema/OneOfVisitor.ts +38 -0
  63. package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.cjs +23 -0
  64. package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.mjs +18 -0
  65. package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.ts +28 -0
  66. package/src/refractor/visitors/json-schema/PropertiesVisitor.cjs +23 -0
  67. package/src/refractor/visitors/json-schema/PropertiesVisitor.mjs +18 -0
  68. package/src/refractor/visitors/json-schema/PropertiesVisitor.ts +28 -0
  69. package/src/refractor/visitors/json-schema/bases.cjs +23 -0
  70. package/src/refractor/visitors/json-schema/bases.mjs +20 -0
  71. package/src/refractor/visitors/json-schema/bases.ts +37 -0
  72. package/src/refractor/visitors/json-schema/index.cjs +36 -0
  73. package/src/refractor/visitors/json-schema/index.mjs +31 -0
  74. package/src/refractor/visitors/json-schema/index.ts +46 -0
  75. package/src/refractor/visitors/json-schema/link-description/index.cjs +17 -0
  76. package/src/refractor/visitors/json-schema/link-description/index.mjs +12 -0
  77. package/src/refractor/visitors/json-schema/link-description/index.ts +22 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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.3](https://github.com/speclynx/apidom/compare/v4.0.2...v4.0.3) (2026-03-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **release:** fix v4.0.2 failed release ([b4dc1c4](https://github.com/speclynx/apidom/commit/b4dc1c48e8d9b2986a70e49b5554eb0a166d7528))
11
+
6
12
  ## [4.0.2](https://github.com/speclynx/apidom/compare/v4.0.1...v4.0.2) (2026-03-11)
7
13
 
8
14
  **Note:** Version bump only for package @speclynx/apidom-ns-json-schema-2019-09
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speclynx/apidom-ns-json-schema-2019-09",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "JSON Schema 2019-09 namespace for ApiDOM.",
5
5
  "keywords": [
6
6
  "apidom",
@@ -57,19 +57,18 @@
57
57
  "license": "Apache-2.0",
58
58
  "dependencies": {
59
59
  "@babel/runtime-corejs3": "^7.28.4",
60
- "@speclynx/apidom-core": "4.0.2",
61
- "@speclynx/apidom-datamodel": "4.0.2",
62
- "@speclynx/apidom-error": "4.0.2",
63
- "@speclynx/apidom-ns-json-schema-draft-6": "4.0.2",
64
- "@speclynx/apidom-ns-json-schema-draft-7": "4.0.2",
65
- "@speclynx/apidom-traverse": "4.0.2",
60
+ "@speclynx/apidom-core": "4.0.3",
61
+ "@speclynx/apidom-datamodel": "4.0.3",
62
+ "@speclynx/apidom-error": "4.0.3",
63
+ "@speclynx/apidom-ns-json-schema-draft-6": "4.0.3",
64
+ "@speclynx/apidom-ns-json-schema-draft-7": "4.0.3",
65
+ "@speclynx/apidom-traverse": "4.0.3",
66
66
  "ramda": "~0.32.0",
67
67
  "ramda-adjunct": "^6.0.0",
68
68
  "ts-mixer": "^6.0.4"
69
69
  },
70
70
  "files": [
71
- "src/**/*.mjs",
72
- "src/**/*.cjs",
71
+ "src/",
73
72
  "dist/",
74
73
  "types/apidom-ns-json-schema-2019-09.d.ts",
75
74
  "LICENSES",
@@ -77,5 +76,5 @@
77
76
  "README.md",
78
77
  "CHANGELOG.md"
79
78
  ],
80
- "gitHead": "af1b05d4d5e48a11a3a03cd5699324e0f1b62765"
79
+ "gitHead": "6ccfa09c02232516215e7de3ead276641957e626"
81
80
  }
@@ -0,0 +1,214 @@
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;
@@ -0,0 +1,210 @@
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;