@speclynx/apidom-ns-json-schema-draft-4 1.12.1

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 (93) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/LICENSE +202 -0
  3. package/LICENSES/AFL-3.0.txt +182 -0
  4. package/LICENSES/Apache-2.0.txt +202 -0
  5. package/LICENSES/BSD-3-Clause.txt +26 -0
  6. package/LICENSES/MIT.txt +9 -0
  7. package/NOTICE +65 -0
  8. package/README.md +189 -0
  9. package/dist/apidom-ns-json-schema-draft-4.browser.js +1 -0
  10. package/package.json +64 -0
  11. package/src/elements/JSONReference.cjs +29 -0
  12. package/src/elements/JSONReference.mjs +26 -0
  13. package/src/elements/JSONSchema.cjs +296 -0
  14. package/src/elements/JSONSchema.mjs +292 -0
  15. package/src/elements/LinkDescription.cjs +65 -0
  16. package/src/elements/LinkDescription.mjs +61 -0
  17. package/src/elements/Media.cjs +29 -0
  18. package/src/elements/Media.mjs +26 -0
  19. package/src/index.cjs +66 -0
  20. package/src/index.mjs +24 -0
  21. package/src/media-types.cjs +34 -0
  22. package/src/media-types.mjs +30 -0
  23. package/src/namespace.cjs +25 -0
  24. package/src/namespace.mjs +20 -0
  25. package/src/predicates.cjs +53 -0
  26. package/src/predicates.mjs +48 -0
  27. package/src/refractor/index.cjs +53 -0
  28. package/src/refractor/index.mjs +47 -0
  29. package/src/refractor/plugins/replace-empty-element.cjs +200 -0
  30. package/src/refractor/plugins/replace-empty-element.mjs +194 -0
  31. package/src/refractor/predicates.cjs +16 -0
  32. package/src/refractor/predicates.mjs +12 -0
  33. package/src/refractor/registration.cjs +19 -0
  34. package/src/refractor/registration.mjs +10 -0
  35. package/src/refractor/specification.cjs +182 -0
  36. package/src/refractor/specification.mjs +177 -0
  37. package/src/refractor/toolbox.cjs +21 -0
  38. package/src/refractor/toolbox.mjs +15 -0
  39. package/src/refractor/visitors/FallbackVisitor.cjs +25 -0
  40. package/src/refractor/visitors/FallbackVisitor.mjs +19 -0
  41. package/src/refractor/visitors/SpecificationVisitor.cjs +74 -0
  42. package/src/refractor/visitors/SpecificationVisitor.mjs +68 -0
  43. package/src/refractor/visitors/Visitor.cjs +31 -0
  44. package/src/refractor/visitors/Visitor.mjs +28 -0
  45. package/src/refractor/visitors/generics/AlternatingVisitor.cjs +42 -0
  46. package/src/refractor/visitors/generics/AlternatingVisitor.mjs +35 -0
  47. package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +53 -0
  48. package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +46 -0
  49. package/src/refractor/visitors/generics/MapVisitor.cjs +21 -0
  50. package/src/refractor/visitors/generics/MapVisitor.mjs +15 -0
  51. package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +53 -0
  52. package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +47 -0
  53. package/src/refractor/visitors/json-schema/AllOfVisitor.cjs +35 -0
  54. package/src/refractor/visitors/json-schema/AllOfVisitor.mjs +29 -0
  55. package/src/refractor/visitors/json-schema/AnyOfVisitor.cjs +35 -0
  56. package/src/refractor/visitors/json-schema/AnyOfVisitor.mjs +29 -0
  57. package/src/refractor/visitors/json-schema/DefinitionsVisitor.cjs +27 -0
  58. package/src/refractor/visitors/json-schema/DefinitionsVisitor.mjs +21 -0
  59. package/src/refractor/visitors/json-schema/DependenciesVisitor.cjs +27 -0
  60. package/src/refractor/visitors/json-schema/DependenciesVisitor.mjs +21 -0
  61. package/src/refractor/visitors/json-schema/EnumVisitor.cjs +17 -0
  62. package/src/refractor/visitors/json-schema/EnumVisitor.mjs +12 -0
  63. package/src/refractor/visitors/json-schema/ItemsVisitor.cjs +37 -0
  64. package/src/refractor/visitors/json-schema/ItemsVisitor.mjs +31 -0
  65. package/src/refractor/visitors/json-schema/JSONSchemaOrJSONReferenceVisitor.cjs +24 -0
  66. package/src/refractor/visitors/json-schema/JSONSchemaOrJSONReferenceVisitor.mjs +19 -0
  67. package/src/refractor/visitors/json-schema/LinksVisitor.cjs +33 -0
  68. package/src/refractor/visitors/json-schema/LinksVisitor.mjs +27 -0
  69. package/src/refractor/visitors/json-schema/OneOfVisitor.cjs +35 -0
  70. package/src/refractor/visitors/json-schema/OneOfVisitor.mjs +29 -0
  71. package/src/refractor/visitors/json-schema/ParentSchemaAwareVisitor.cjs +20 -0
  72. package/src/refractor/visitors/json-schema/ParentSchemaAwareVisitor.mjs +16 -0
  73. package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.cjs +27 -0
  74. package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.mjs +21 -0
  75. package/src/refractor/visitors/json-schema/PropertiesVisitor.cjs +27 -0
  76. package/src/refractor/visitors/json-schema/PropertiesVisitor.mjs +21 -0
  77. package/src/refractor/visitors/json-schema/RequiredVisitor.cjs +17 -0
  78. package/src/refractor/visitors/json-schema/RequiredVisitor.mjs +12 -0
  79. package/src/refractor/visitors/json-schema/TypeVisitor.cjs +22 -0
  80. package/src/refractor/visitors/json-schema/TypeVisitor.mjs +17 -0
  81. package/src/refractor/visitors/json-schema/index.cjs +64 -0
  82. package/src/refractor/visitors/json-schema/index.mjs +58 -0
  83. package/src/refractor/visitors/json-schema/json-reference/$RefVisitor.cjs +17 -0
  84. package/src/refractor/visitors/json-schema/json-reference/$RefVisitor.mjs +12 -0
  85. package/src/refractor/visitors/json-schema/json-reference/index.cjs +35 -0
  86. package/src/refractor/visitors/json-schema/json-reference/index.mjs +29 -0
  87. package/src/refractor/visitors/json-schema/link-description/index.cjs +25 -0
  88. package/src/refractor/visitors/json-schema/link-description/index.mjs +19 -0
  89. package/src/refractor/visitors/json-schema/media/index.cjs +25 -0
  90. package/src/refractor/visitors/json-schema/media/index.mjs +19 -0
  91. package/src/traversal/visitor.cjs +26 -0
  92. package/src/traversal/visitor.mjs +22 -0
  93. package/types/apidom-ns-json-schema-draft-4.d.ts +905 -0
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * In Draft 4, $ref behaves a little differently. When an object contains a $ref property,
8
+ * the object is considered a reference, not a schema. Therefore, any other properties you put in that object will
9
+ * not be treated as JSON Schema keywords and will be ignored by the validator.
10
+ * $ref can only be used where a schema is expected.
11
+ *
12
+ * URI: https://json-schema.org/understanding-json-schema/structuring.html?highlight=ref#id18
13
+ * @public
14
+ */
15
+
16
+ class JSONReference extends _apidomCore.ObjectElement {
17
+ constructor(content, meta, attributes) {
18
+ super(content, meta, attributes);
19
+ this.element = 'JSONReference';
20
+ this.classes.push('json-reference');
21
+ }
22
+ get $ref() {
23
+ return this.get('$ref');
24
+ }
25
+ set $ref($ref) {
26
+ this.set('$ref', $ref);
27
+ }
28
+ }
29
+ var _default = exports.default = JSONReference;
@@ -0,0 +1,26 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+
3
+ /**
4
+ * In Draft 4, $ref behaves a little differently. When an object contains a $ref property,
5
+ * the object is considered a reference, not a schema. Therefore, any other properties you put in that object will
6
+ * not be treated as JSON Schema keywords and will be ignored by the validator.
7
+ * $ref can only be used where a schema is expected.
8
+ *
9
+ * URI: https://json-schema.org/understanding-json-schema/structuring.html?highlight=ref#id18
10
+ * @public
11
+ */
12
+
13
+ class JSONReference extends ObjectElement {
14
+ constructor(content, meta, attributes) {
15
+ super(content, meta, attributes);
16
+ this.element = 'JSONReference';
17
+ this.classes.push('json-reference');
18
+ }
19
+ get $ref() {
20
+ return this.get('$ref');
21
+ }
22
+ set $ref($ref) {
23
+ this.set('$ref', $ref);
24
+ }
25
+ }
26
+ export default JSONReference;
@@ -0,0 +1,296 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class JSONSchema extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'JSONSchemaDraft4';
13
+ }
14
+
15
+ /**
16
+ * Core vocabulary
17
+ *
18
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
19
+ */
20
+
21
+ get idProp() {
22
+ return this.get('id');
23
+ }
24
+ set idProp(idProp) {
25
+ this.set('id', idProp);
26
+ }
27
+ get $schema() {
28
+ return this.get('$schema');
29
+ }
30
+ set $schema($schema) {
31
+ this.set('$schema', $schema);
32
+ }
33
+
34
+ /**
35
+ * Validation vocabulary
36
+ *
37
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-validation-00
38
+ */
39
+
40
+ /**
41
+ * Validation keywords for numeric instances (number and integer)
42
+ */
43
+
44
+ get multipleOf() {
45
+ return this.get('multipleOf');
46
+ }
47
+ set multipleOf(multipleOf) {
48
+ this.set('multipleOf', multipleOf);
49
+ }
50
+ get maximum() {
51
+ return this.get('maximum');
52
+ }
53
+ set maximum(maximum) {
54
+ this.set('maximum', maximum);
55
+ }
56
+ get exclusiveMaximum() {
57
+ return this.get('exclusiveMaximum');
58
+ }
59
+ set exclusiveMaximum(exclusiveMaximum) {
60
+ this.set('exclusiveMaximum', exclusiveMaximum);
61
+ }
62
+ get minimum() {
63
+ return this.get('minimum');
64
+ }
65
+ set minimum(minimum) {
66
+ this.set('minimum', minimum);
67
+ }
68
+ get exclusiveMinimum() {
69
+ return this.get('exclusiveMinimum');
70
+ }
71
+ set exclusiveMinimum(exclusiveMinimum) {
72
+ this.set('exclusiveMinimum', exclusiveMinimum);
73
+ }
74
+
75
+ /**
76
+ * Validation keywords for strings
77
+ */
78
+
79
+ get maxLength() {
80
+ return this.get('maxLength');
81
+ }
82
+ set maxLength(maxLength) {
83
+ this.set('maxLength', maxLength);
84
+ }
85
+ get minLength() {
86
+ return this.get('minLength');
87
+ }
88
+ set minLength(minLength) {
89
+ this.set('minLength', minLength);
90
+ }
91
+ get pattern() {
92
+ return this.get('pattern');
93
+ }
94
+ set pattern(pattern) {
95
+ this.set('pattern', pattern);
96
+ }
97
+
98
+ /**
99
+ * Validation keywords for arrays
100
+ */
101
+
102
+ get additionalItems() {
103
+ return this.get('additionalItems');
104
+ }
105
+ set additionalItems(additionalItems) {
106
+ this.set('additionalItems', additionalItems);
107
+ }
108
+ get items() {
109
+ return this.get('items');
110
+ }
111
+ set items(items) {
112
+ this.set('items', items);
113
+ }
114
+ get maxItems() {
115
+ return this.get('maxItems');
116
+ }
117
+ set maxItems(maxItems) {
118
+ this.set('maxItems', maxItems);
119
+ }
120
+ get minItems() {
121
+ return this.get('minItems');
122
+ }
123
+ set minItems(minItems) {
124
+ this.set('minItems', minItems);
125
+ }
126
+ get uniqueItems() {
127
+ return this.get('uniqueItems');
128
+ }
129
+ set uniqueItems(uniqueItems) {
130
+ this.set('uniqueItems', uniqueItems);
131
+ }
132
+
133
+ /**
134
+ * Validation keywords for objects
135
+ */
136
+
137
+ get maxProperties() {
138
+ return this.get('maxProperties');
139
+ }
140
+ set maxProperties(maxProperties) {
141
+ this.set('maxProperties', maxProperties);
142
+ }
143
+ get minProperties() {
144
+ return this.get('minProperties');
145
+ }
146
+ set minProperties(minProperties) {
147
+ this.set('minProperties', minProperties);
148
+ }
149
+ get required() {
150
+ return this.get('required');
151
+ }
152
+ set required(required) {
153
+ this.set('required', required);
154
+ }
155
+ get properties() {
156
+ return this.get('properties');
157
+ }
158
+ set properties(properties) {
159
+ this.set('properties', properties);
160
+ }
161
+ get additionalProperties() {
162
+ return this.get('additionalProperties');
163
+ }
164
+ set additionalProperties(additionalProperties) {
165
+ this.set('additionalProperties', additionalProperties);
166
+ }
167
+ get patternProperties() {
168
+ return this.get('patternProperties');
169
+ }
170
+ set patternProperties(patternProperties) {
171
+ this.set('patternProperties', patternProperties);
172
+ }
173
+ get dependencies() {
174
+ return this.get('dependencies');
175
+ }
176
+ set dependencies(dependencies) {
177
+ this.set('dependencies', dependencies);
178
+ }
179
+
180
+ /**
181
+ * Validation keywords for any instance type
182
+ */
183
+
184
+ get enum() {
185
+ return this.get('enum');
186
+ }
187
+ set enum(enumValue) {
188
+ this.set('enum', enumValue);
189
+ }
190
+ get type() {
191
+ return this.get('type');
192
+ }
193
+ set type(type) {
194
+ this.set('type', type);
195
+ }
196
+ get allOf() {
197
+ return this.get('allOf');
198
+ }
199
+ set allOf(allOf) {
200
+ this.set('allOf', allOf);
201
+ }
202
+ get anyOf() {
203
+ return this.get('anyOf');
204
+ }
205
+ set anyOf(anyOf) {
206
+ this.set('anyOf', anyOf);
207
+ }
208
+ get oneOf() {
209
+ return this.get('oneOf');
210
+ }
211
+ set oneOf(oneOf) {
212
+ this.set('oneOf', oneOf);
213
+ }
214
+ get not() {
215
+ return this.get('not');
216
+ }
217
+ set not(not) {
218
+ this.set('not', not);
219
+ }
220
+ get definitions() {
221
+ return this.get('definitions');
222
+ }
223
+ set definitions(definitions) {
224
+ this.set('definitions', definitions);
225
+ }
226
+
227
+ /**
228
+ * Metadata keywords
229
+ *
230
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
231
+ */
232
+
233
+ get title() {
234
+ return this.get('title');
235
+ }
236
+ set title(title) {
237
+ this.set('title', title);
238
+ }
239
+ get description() {
240
+ return this.get('description');
241
+ }
242
+ set description(description) {
243
+ this.set('description', description);
244
+ }
245
+ get default() {
246
+ return this.get('default');
247
+ }
248
+ set default(defaultValue) {
249
+ this.set('default', defaultValue);
250
+ }
251
+
252
+ /**
253
+ * Semantic validation with "format"
254
+ *
255
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-7
256
+ */
257
+
258
+ get format() {
259
+ return this.get('format');
260
+ }
261
+ set format(format) {
262
+ this.set('format', format);
263
+ }
264
+
265
+ /**
266
+ * JSON Hyper-Schema
267
+ *
268
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
269
+ */
270
+
271
+ get base() {
272
+ return this.get('base');
273
+ }
274
+ set base(base) {
275
+ this.set('base', base);
276
+ }
277
+ get links() {
278
+ return this.get('links');
279
+ }
280
+ set links(links) {
281
+ this.set('links', links);
282
+ }
283
+ get media() {
284
+ return this.get('media');
285
+ }
286
+ set media(media) {
287
+ this.set('media', media);
288
+ }
289
+ get readOnly() {
290
+ return this.get('readOnly');
291
+ }
292
+ set readOnly(readOnly) {
293
+ this.set('readOnly', readOnly);
294
+ }
295
+ }
296
+ var _default = exports.default = JSONSchema;
@@ -0,0 +1,292 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+ /**
3
+ * @public
4
+ */
5
+ class JSONSchema extends ObjectElement {
6
+ constructor(content, meta, attributes) {
7
+ super(content, meta, attributes);
8
+ this.element = 'JSONSchemaDraft4';
9
+ }
10
+
11
+ /**
12
+ * Core vocabulary
13
+ *
14
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
15
+ */
16
+
17
+ get idProp() {
18
+ return this.get('id');
19
+ }
20
+ set idProp(idProp) {
21
+ this.set('id', idProp);
22
+ }
23
+ get $schema() {
24
+ return this.get('$schema');
25
+ }
26
+ set $schema($schema) {
27
+ this.set('$schema', $schema);
28
+ }
29
+
30
+ /**
31
+ * Validation vocabulary
32
+ *
33
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-validation-00
34
+ */
35
+
36
+ /**
37
+ * Validation keywords for numeric instances (number and integer)
38
+ */
39
+
40
+ get multipleOf() {
41
+ return this.get('multipleOf');
42
+ }
43
+ set multipleOf(multipleOf) {
44
+ this.set('multipleOf', multipleOf);
45
+ }
46
+ get maximum() {
47
+ return this.get('maximum');
48
+ }
49
+ set maximum(maximum) {
50
+ this.set('maximum', maximum);
51
+ }
52
+ get exclusiveMaximum() {
53
+ return this.get('exclusiveMaximum');
54
+ }
55
+ set exclusiveMaximum(exclusiveMaximum) {
56
+ this.set('exclusiveMaximum', exclusiveMaximum);
57
+ }
58
+ get minimum() {
59
+ return this.get('minimum');
60
+ }
61
+ set minimum(minimum) {
62
+ this.set('minimum', minimum);
63
+ }
64
+ get exclusiveMinimum() {
65
+ return this.get('exclusiveMinimum');
66
+ }
67
+ set exclusiveMinimum(exclusiveMinimum) {
68
+ this.set('exclusiveMinimum', exclusiveMinimum);
69
+ }
70
+
71
+ /**
72
+ * Validation keywords for strings
73
+ */
74
+
75
+ get maxLength() {
76
+ return this.get('maxLength');
77
+ }
78
+ set maxLength(maxLength) {
79
+ this.set('maxLength', maxLength);
80
+ }
81
+ get minLength() {
82
+ return this.get('minLength');
83
+ }
84
+ set minLength(minLength) {
85
+ this.set('minLength', minLength);
86
+ }
87
+ get pattern() {
88
+ return this.get('pattern');
89
+ }
90
+ set pattern(pattern) {
91
+ this.set('pattern', pattern);
92
+ }
93
+
94
+ /**
95
+ * Validation keywords for arrays
96
+ */
97
+
98
+ get additionalItems() {
99
+ return this.get('additionalItems');
100
+ }
101
+ set additionalItems(additionalItems) {
102
+ this.set('additionalItems', additionalItems);
103
+ }
104
+ get items() {
105
+ return this.get('items');
106
+ }
107
+ set items(items) {
108
+ this.set('items', items);
109
+ }
110
+ get maxItems() {
111
+ return this.get('maxItems');
112
+ }
113
+ set maxItems(maxItems) {
114
+ this.set('maxItems', maxItems);
115
+ }
116
+ get minItems() {
117
+ return this.get('minItems');
118
+ }
119
+ set minItems(minItems) {
120
+ this.set('minItems', minItems);
121
+ }
122
+ get uniqueItems() {
123
+ return this.get('uniqueItems');
124
+ }
125
+ set uniqueItems(uniqueItems) {
126
+ this.set('uniqueItems', uniqueItems);
127
+ }
128
+
129
+ /**
130
+ * Validation keywords for objects
131
+ */
132
+
133
+ get maxProperties() {
134
+ return this.get('maxProperties');
135
+ }
136
+ set maxProperties(maxProperties) {
137
+ this.set('maxProperties', maxProperties);
138
+ }
139
+ get minProperties() {
140
+ return this.get('minProperties');
141
+ }
142
+ set minProperties(minProperties) {
143
+ this.set('minProperties', minProperties);
144
+ }
145
+ get required() {
146
+ return this.get('required');
147
+ }
148
+ set required(required) {
149
+ this.set('required', required);
150
+ }
151
+ get properties() {
152
+ return this.get('properties');
153
+ }
154
+ set properties(properties) {
155
+ this.set('properties', properties);
156
+ }
157
+ get additionalProperties() {
158
+ return this.get('additionalProperties');
159
+ }
160
+ set additionalProperties(additionalProperties) {
161
+ this.set('additionalProperties', additionalProperties);
162
+ }
163
+ get patternProperties() {
164
+ return this.get('patternProperties');
165
+ }
166
+ set patternProperties(patternProperties) {
167
+ this.set('patternProperties', patternProperties);
168
+ }
169
+ get dependencies() {
170
+ return this.get('dependencies');
171
+ }
172
+ set dependencies(dependencies) {
173
+ this.set('dependencies', dependencies);
174
+ }
175
+
176
+ /**
177
+ * Validation keywords for any instance type
178
+ */
179
+
180
+ get enum() {
181
+ return this.get('enum');
182
+ }
183
+ set enum(enumValue) {
184
+ this.set('enum', enumValue);
185
+ }
186
+ get type() {
187
+ return this.get('type');
188
+ }
189
+ set type(type) {
190
+ this.set('type', type);
191
+ }
192
+ get allOf() {
193
+ return this.get('allOf');
194
+ }
195
+ set allOf(allOf) {
196
+ this.set('allOf', allOf);
197
+ }
198
+ get anyOf() {
199
+ return this.get('anyOf');
200
+ }
201
+ set anyOf(anyOf) {
202
+ this.set('anyOf', anyOf);
203
+ }
204
+ get oneOf() {
205
+ return this.get('oneOf');
206
+ }
207
+ set oneOf(oneOf) {
208
+ this.set('oneOf', oneOf);
209
+ }
210
+ get not() {
211
+ return this.get('not');
212
+ }
213
+ set not(not) {
214
+ this.set('not', not);
215
+ }
216
+ get definitions() {
217
+ return this.get('definitions');
218
+ }
219
+ set definitions(definitions) {
220
+ this.set('definitions', definitions);
221
+ }
222
+
223
+ /**
224
+ * Metadata keywords
225
+ *
226
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
227
+ */
228
+
229
+ get title() {
230
+ return this.get('title');
231
+ }
232
+ set title(title) {
233
+ this.set('title', title);
234
+ }
235
+ get description() {
236
+ return this.get('description');
237
+ }
238
+ set description(description) {
239
+ this.set('description', description);
240
+ }
241
+ get default() {
242
+ return this.get('default');
243
+ }
244
+ set default(defaultValue) {
245
+ this.set('default', defaultValue);
246
+ }
247
+
248
+ /**
249
+ * Semantic validation with "format"
250
+ *
251
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-7
252
+ */
253
+
254
+ get format() {
255
+ return this.get('format');
256
+ }
257
+ set format(format) {
258
+ this.set('format', format);
259
+ }
260
+
261
+ /**
262
+ * JSON Hyper-Schema
263
+ *
264
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
265
+ */
266
+
267
+ get base() {
268
+ return this.get('base');
269
+ }
270
+ set base(base) {
271
+ this.set('base', base);
272
+ }
273
+ get links() {
274
+ return this.get('links');
275
+ }
276
+ set links(links) {
277
+ this.set('links', links);
278
+ }
279
+ get media() {
280
+ return this.get('media');
281
+ }
282
+ set media(media) {
283
+ this.set('media', media);
284
+ }
285
+ get readOnly() {
286
+ return this.get('readOnly');
287
+ }
288
+ set readOnly(readOnly) {
289
+ this.set('readOnly', readOnly);
290
+ }
291
+ }
292
+ export default JSONSchema;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00#section-5
8
+ * @public
9
+ */
10
+
11
+ class LinkDescription extends _apidomCore.ObjectElement {
12
+ constructor(content, meta, attributes) {
13
+ super(content, meta, attributes);
14
+ this.element = 'linkDescription';
15
+ }
16
+ get href() {
17
+ return this.get('href');
18
+ }
19
+ set href(href) {
20
+ this.set('href', href);
21
+ }
22
+ get rel() {
23
+ return this.get('rel');
24
+ }
25
+ set rel(rel) {
26
+ this.set('rel', rel);
27
+ }
28
+ get title() {
29
+ return this.get('title');
30
+ }
31
+ set title(title) {
32
+ this.set('title', title);
33
+ }
34
+ get targetSchema() {
35
+ return this.get('targetSchema');
36
+ }
37
+ set targetSchema(targetSchema) {
38
+ this.set('targetSchema', targetSchema);
39
+ }
40
+ get mediaType() {
41
+ return this.get('mediaType');
42
+ }
43
+ set mediaType(mediaType) {
44
+ this.set('mediaType', mediaType);
45
+ }
46
+ get method() {
47
+ return this.get('method');
48
+ }
49
+ set method(method) {
50
+ this.set('method', method);
51
+ }
52
+ get encType() {
53
+ return this.get('encType');
54
+ }
55
+ set encType(encType) {
56
+ this.set('encType', encType);
57
+ }
58
+ get schema() {
59
+ return this.get('schema');
60
+ }
61
+ set schema(schema) {
62
+ this.set('schema', schema);
63
+ }
64
+ }
65
+ var _default = exports.default = LinkDescription;