@swagger-api/apidom-ns-openapi-3-1 1.0.0-beta.10 → 1.0.0-beta.12
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 +12 -0
- package/dist/apidom-ns-openapi-3-1.browser.js +4596 -2570
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/package.json +7 -6
- package/src/elements/Schema.cjs +2 -427
- package/src/elements/Schema.mjs +2 -427
- package/src/refractor/specification.cjs +13 -115
- package/src/refractor/specification.mjs +13 -115
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.cjs +2 -10
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.mjs +4 -9
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.cjs +2 -14
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.mjs +2 -12
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.cjs +2 -14
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.mjs +2 -12
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.cjs +2 -14
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.mjs +2 -12
- package/src/refractor/visitors/open-api-3-1/schema/index.cjs +10 -31
- package/src/refractor/visitors/open-api-3-1/schema/index.mjs +12 -33
- package/types/apidom-ns-openapi-3-1.d.ts +137 -406
- package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.mjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/TypeVisitor.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/schema/TypeVisitor.mjs +0 -17
package/src/elements/Schema.mjs
CHANGED
|
@@ -1,438 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSONSchemaElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
|
-
class Schema extends
|
|
5
|
+
class Schema extends JSONSchemaElement {
|
|
6
6
|
constructor(content, meta, attributes) {
|
|
7
7
|
super(content, meta, attributes);
|
|
8
8
|
this.element = 'schema';
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* Core vocabulary
|
|
13
|
-
*
|
|
14
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/core
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
get $schema() {
|
|
18
|
-
return this.get('$schema');
|
|
19
|
-
}
|
|
20
|
-
set $schema($schema) {
|
|
21
|
-
this.set('$schema', $schema);
|
|
22
|
-
}
|
|
23
|
-
get $vocabulary() {
|
|
24
|
-
return this.get('$vocabulary');
|
|
25
|
-
}
|
|
26
|
-
set $vocabulary($vocabulary) {
|
|
27
|
-
this.set('$vocabulary', $vocabulary);
|
|
28
|
-
}
|
|
29
|
-
get $id() {
|
|
30
|
-
return this.get('$id');
|
|
31
|
-
}
|
|
32
|
-
set $id($id) {
|
|
33
|
-
this.set('$id', $id);
|
|
34
|
-
}
|
|
35
|
-
get $anchor() {
|
|
36
|
-
return this.get('$anchor');
|
|
37
|
-
}
|
|
38
|
-
set $anchor($anchor) {
|
|
39
|
-
this.set('$anchor', $anchor);
|
|
40
|
-
}
|
|
41
|
-
get $dynamicAnchor() {
|
|
42
|
-
return this.get('$dynamicAnchor');
|
|
43
|
-
}
|
|
44
|
-
set $dynamicAnchor($dynamicAnchor) {
|
|
45
|
-
this.set('$dynamicAnchor', $dynamicAnchor);
|
|
46
|
-
}
|
|
47
|
-
get $dynamicRef() {
|
|
48
|
-
return this.get('$dynamicRef');
|
|
49
|
-
}
|
|
50
|
-
set $dynamicRef($dynamicRef) {
|
|
51
|
-
this.set('$dynamicRef', $dynamicRef);
|
|
52
|
-
}
|
|
53
|
-
get $ref() {
|
|
54
|
-
return this.get('$ref');
|
|
55
|
-
}
|
|
56
|
-
set $ref($ref) {
|
|
57
|
-
this.set('$ref', $ref);
|
|
58
|
-
}
|
|
59
|
-
get $defs() {
|
|
60
|
-
return this.get('$defs');
|
|
61
|
-
}
|
|
62
|
-
set $defs($defs) {
|
|
63
|
-
this.set('$defs', $defs);
|
|
64
|
-
}
|
|
65
|
-
get $comment() {
|
|
66
|
-
return this.get('$comment');
|
|
67
|
-
}
|
|
68
|
-
set $comment($comment) {
|
|
69
|
-
this.set('$comment', $comment);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Applicator vocabulary
|
|
74
|
-
*
|
|
75
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/applicator
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
get allOf() {
|
|
79
|
-
return this.get('allOf');
|
|
80
|
-
}
|
|
81
|
-
set allOf(allOf) {
|
|
82
|
-
this.set('allOf', allOf);
|
|
83
|
-
}
|
|
84
|
-
get anyOf() {
|
|
85
|
-
return this.get('anyOf');
|
|
86
|
-
}
|
|
87
|
-
set anyOf(anyOf) {
|
|
88
|
-
this.set('anyOf', anyOf);
|
|
89
|
-
}
|
|
90
|
-
get oneOf() {
|
|
91
|
-
return this.get('oneOf');
|
|
92
|
-
}
|
|
93
|
-
set oneOf(oneOf) {
|
|
94
|
-
this.set('oneOf', oneOf);
|
|
95
|
-
}
|
|
96
|
-
get not() {
|
|
97
|
-
return this.get('not');
|
|
98
|
-
}
|
|
99
|
-
set not(not) {
|
|
100
|
-
this.set('not', not);
|
|
101
|
-
}
|
|
102
|
-
get if() {
|
|
103
|
-
return this.get('if');
|
|
104
|
-
}
|
|
105
|
-
set if(ifSchema) {
|
|
106
|
-
this.set('if', ifSchema);
|
|
107
|
-
}
|
|
108
|
-
get then() {
|
|
109
|
-
return this.get('then');
|
|
110
|
-
}
|
|
111
|
-
set then(thenSchema) {
|
|
112
|
-
this.set('then', thenSchema);
|
|
113
|
-
}
|
|
114
|
-
get else() {
|
|
115
|
-
return this.get('else');
|
|
116
|
-
}
|
|
117
|
-
set else(elseSchema) {
|
|
118
|
-
this.set('else', elseSchema);
|
|
119
|
-
}
|
|
120
|
-
get dependentSchemas() {
|
|
121
|
-
return this.get('dependentSchemas');
|
|
122
|
-
}
|
|
123
|
-
set dependentSchemas(dependentSchemas) {
|
|
124
|
-
this.set('dependentSchemas', dependentSchemas);
|
|
125
|
-
}
|
|
126
|
-
get prefixItems() {
|
|
127
|
-
return this.get('prefixItems');
|
|
128
|
-
}
|
|
129
|
-
set prefixItems(prefixItems) {
|
|
130
|
-
this.set('prefixItems', prefixItems);
|
|
131
|
-
}
|
|
132
|
-
get items() {
|
|
133
|
-
return this.get('items');
|
|
134
|
-
}
|
|
135
|
-
set items(items) {
|
|
136
|
-
this.set('items', items);
|
|
137
|
-
}
|
|
138
|
-
get containsProp() {
|
|
139
|
-
return this.get('contains');
|
|
140
|
-
}
|
|
141
|
-
set containsProp(containsProp) {
|
|
142
|
-
this.set('contains', containsProp);
|
|
143
|
-
}
|
|
144
|
-
get properties() {
|
|
145
|
-
return this.get('properties');
|
|
146
|
-
}
|
|
147
|
-
set properties(properties) {
|
|
148
|
-
this.set('properties', properties);
|
|
149
|
-
}
|
|
150
|
-
get patternProperties() {
|
|
151
|
-
return this.get('patternProperties');
|
|
152
|
-
}
|
|
153
|
-
set patternProperties(patternProperties) {
|
|
154
|
-
this.set('patternProperties', patternProperties);
|
|
155
|
-
}
|
|
156
|
-
get additionalProperties() {
|
|
157
|
-
return this.get('additionalProperties');
|
|
158
|
-
}
|
|
159
|
-
set additionalProperties(additionalProperties) {
|
|
160
|
-
this.set('additionalProperties', additionalProperties);
|
|
161
|
-
}
|
|
162
|
-
get propertyNames() {
|
|
163
|
-
return this.get('propertyNames');
|
|
164
|
-
}
|
|
165
|
-
set propertyNames(propertyNames) {
|
|
166
|
-
this.set('propertyNames', propertyNames);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Unevaluated Locations vocabulary
|
|
171
|
-
*
|
|
172
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/unevaluated
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
get unevaluatedItems() {
|
|
176
|
-
return this.get('unevaluatedItems');
|
|
177
|
-
}
|
|
178
|
-
set unevaluatedItems(unevaluatedItems) {
|
|
179
|
-
this.set('unevaluatedItems', unevaluatedItems);
|
|
180
|
-
}
|
|
181
|
-
get unevaluatedProperties() {
|
|
182
|
-
return this.get('unevaluatedProperties');
|
|
183
|
-
}
|
|
184
|
-
set unevaluatedProperties(unevaluatedProperties) {
|
|
185
|
-
this.set('unevaluatedProperties', unevaluatedProperties);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Validation vocabulary
|
|
190
|
-
*
|
|
191
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/validation
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Validation Keywords for Any Instance Type
|
|
196
|
-
*
|
|
197
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.1
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
get type() {
|
|
201
|
-
return this.get('type');
|
|
202
|
-
}
|
|
203
|
-
set type(type) {
|
|
204
|
-
this.set('type', type);
|
|
205
|
-
}
|
|
206
|
-
get enum() {
|
|
207
|
-
return this.get('enum');
|
|
208
|
-
}
|
|
209
|
-
set enum(enumVal) {
|
|
210
|
-
this.set('enum', enumVal);
|
|
211
|
-
}
|
|
212
|
-
get const() {
|
|
213
|
-
return this.get('const');
|
|
214
|
-
}
|
|
215
|
-
set const(constVal) {
|
|
216
|
-
this.set('const', constVal);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Validation Keywords for Numeric Instances (number and integer)
|
|
221
|
-
*
|
|
222
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#numeric
|
|
223
|
-
*/
|
|
224
|
-
|
|
225
|
-
get multipleOf() {
|
|
226
|
-
return this.get('multipleOf');
|
|
227
|
-
}
|
|
228
|
-
set multipleOf(multipleOf) {
|
|
229
|
-
this.set('multipleOf', multipleOf);
|
|
230
|
-
}
|
|
231
|
-
get maximum() {
|
|
232
|
-
return this.get('maximum');
|
|
233
|
-
}
|
|
234
|
-
set maximum(maximum) {
|
|
235
|
-
this.set('maximum', maximum);
|
|
236
|
-
}
|
|
237
|
-
get exclusiveMaximum() {
|
|
238
|
-
return this.get('exclusiveMaximum');
|
|
239
|
-
}
|
|
240
|
-
set exclusiveMaximum(exclusiveMaximum) {
|
|
241
|
-
this.set('exclusiveMaximum', exclusiveMaximum);
|
|
242
|
-
}
|
|
243
|
-
get minimum() {
|
|
244
|
-
return this.get('minimum');
|
|
245
|
-
}
|
|
246
|
-
set minimum(minimum) {
|
|
247
|
-
this.set('minimum', minimum);
|
|
248
|
-
}
|
|
249
|
-
get exclusiveMinimum() {
|
|
250
|
-
return this.get('exclusiveMinimum');
|
|
251
|
-
}
|
|
252
|
-
set exclusiveMinimum(exclusiveMinimum) {
|
|
253
|
-
this.set('exclusiveMinimum', exclusiveMinimum);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Validation Keywords for Strings
|
|
258
|
-
*
|
|
259
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#string
|
|
260
|
-
*/
|
|
261
|
-
|
|
262
|
-
get maxLength() {
|
|
263
|
-
return this.get('maxLength');
|
|
264
|
-
}
|
|
265
|
-
set maxLength(maxLength) {
|
|
266
|
-
this.set('maxLength', maxLength);
|
|
267
|
-
}
|
|
268
|
-
get minLength() {
|
|
269
|
-
return this.get('minLength');
|
|
270
|
-
}
|
|
271
|
-
set minLength(minLength) {
|
|
272
|
-
this.set('minLength', minLength);
|
|
273
|
-
}
|
|
274
|
-
get pattern() {
|
|
275
|
-
return this.get('pattern');
|
|
276
|
-
}
|
|
277
|
-
set pattern(pattern) {
|
|
278
|
-
this.set('pattern', pattern);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Validation Keywords for Arrays
|
|
283
|
-
*
|
|
284
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.4
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
get maxItems() {
|
|
288
|
-
return this.get('maxItems');
|
|
289
|
-
}
|
|
290
|
-
set maxItems(maxItems) {
|
|
291
|
-
this.set('maxItems', maxItems);
|
|
292
|
-
}
|
|
293
|
-
get minItems() {
|
|
294
|
-
return this.get('minItems');
|
|
295
|
-
}
|
|
296
|
-
set minItems(minItems) {
|
|
297
|
-
this.set('minItems', minItems);
|
|
298
|
-
}
|
|
299
|
-
get uniqueItems() {
|
|
300
|
-
return this.get('uniqueItems');
|
|
301
|
-
}
|
|
302
|
-
set uniqueItems(uniqueItems) {
|
|
303
|
-
this.set('uniqueItems', uniqueItems);
|
|
304
|
-
}
|
|
305
|
-
get maxContains() {
|
|
306
|
-
return this.get('maxContains');
|
|
307
|
-
}
|
|
308
|
-
set maxContains(maxContains) {
|
|
309
|
-
this.set('maxContains', maxContains);
|
|
310
|
-
}
|
|
311
|
-
get minContains() {
|
|
312
|
-
return this.get('minContains');
|
|
313
|
-
}
|
|
314
|
-
set minContains(minContains) {
|
|
315
|
-
this.set('minContains', minContains);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Validation Keywords for Objects
|
|
320
|
-
*
|
|
321
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.5
|
|
322
|
-
*/
|
|
323
|
-
|
|
324
|
-
get maxProperties() {
|
|
325
|
-
return this.get('maxProperties');
|
|
326
|
-
}
|
|
327
|
-
set maxProperties(maxProperties) {
|
|
328
|
-
this.set('maxProperties', maxProperties);
|
|
329
|
-
}
|
|
330
|
-
get minProperties() {
|
|
331
|
-
return this.get('minProperties');
|
|
332
|
-
}
|
|
333
|
-
set minProperties(minProperties) {
|
|
334
|
-
this.set('minProperties', minProperties);
|
|
335
|
-
}
|
|
336
|
-
get required() {
|
|
337
|
-
return this.get('required');
|
|
338
|
-
}
|
|
339
|
-
set required(required) {
|
|
340
|
-
this.set('required', required);
|
|
341
|
-
}
|
|
342
|
-
get dependentRequired() {
|
|
343
|
-
return this.get('dependentRequired');
|
|
344
|
-
}
|
|
345
|
-
set dependentRequired(dependentRequired) {
|
|
346
|
-
this.set('dependentRequired', dependentRequired);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Vocabulary for Basic Meta-Data Annotations
|
|
351
|
-
*
|
|
352
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/meta-data
|
|
353
|
-
*/
|
|
354
|
-
|
|
355
|
-
get title() {
|
|
356
|
-
return this.get('title');
|
|
357
|
-
}
|
|
358
|
-
set title(title) {
|
|
359
|
-
this.set('title', title);
|
|
360
|
-
}
|
|
361
|
-
get description() {
|
|
362
|
-
return this.get('description');
|
|
363
|
-
}
|
|
364
|
-
set description(description) {
|
|
365
|
-
this.set('description', description);
|
|
366
|
-
}
|
|
367
|
-
get default() {
|
|
368
|
-
return this.get('default');
|
|
369
|
-
}
|
|
370
|
-
set default(defaultVal) {
|
|
371
|
-
this.set('default', defaultVal);
|
|
372
|
-
}
|
|
373
|
-
get deprecated() {
|
|
374
|
-
return this.get('deprecated');
|
|
375
|
-
}
|
|
376
|
-
set deprecated(deprecated) {
|
|
377
|
-
this.set('deprecated', deprecated);
|
|
378
|
-
}
|
|
379
|
-
get readOnly() {
|
|
380
|
-
return this.get('readOnly');
|
|
381
|
-
}
|
|
382
|
-
set readOnly(readOnly) {
|
|
383
|
-
this.set('readOnly', readOnly);
|
|
384
|
-
}
|
|
385
|
-
get writeOnly() {
|
|
386
|
-
return this.get('writeOnly');
|
|
387
|
-
}
|
|
388
|
-
set writeOnly(writeOnly) {
|
|
389
|
-
this.set('writeOnly', writeOnly);
|
|
390
|
-
}
|
|
391
|
-
get examples() {
|
|
392
|
-
return this.get('examples');
|
|
393
|
-
}
|
|
394
|
-
set examples(examples) {
|
|
395
|
-
this.set('examples', examples);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Vocabularies for Semantic Content With "format"
|
|
400
|
-
*
|
|
401
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/format-annotation
|
|
402
|
-
*/
|
|
403
|
-
|
|
404
|
-
get format() {
|
|
405
|
-
return this.get('format');
|
|
406
|
-
}
|
|
407
|
-
set format(format) {
|
|
408
|
-
this.set('format', format);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Vocabulary for the Contents of String-Encoded Data
|
|
413
|
-
*
|
|
414
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/content
|
|
415
|
-
*/
|
|
416
|
-
|
|
417
|
-
get contentEncoding() {
|
|
418
|
-
return this.get('contentEncoding');
|
|
419
|
-
}
|
|
420
|
-
set contentEncoding(contentEncoding) {
|
|
421
|
-
this.set('contentEncoding', contentEncoding);
|
|
422
|
-
}
|
|
423
|
-
get contentMediaType() {
|
|
424
|
-
return this.get('contentMediaType');
|
|
425
|
-
}
|
|
426
|
-
set contentMediaType(contentMediaType) {
|
|
427
|
-
this.set('contentMediaType', contentMediaType);
|
|
428
|
-
}
|
|
429
|
-
get contentSchema() {
|
|
430
|
-
return this.get('contentSchema');
|
|
431
|
-
}
|
|
432
|
-
set contentSchema(contentSchema) {
|
|
433
|
-
this.set('contentSchema', contentSchema);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
11
|
/**
|
|
437
12
|
* OAS base vocabulary
|
|
438
13
|
*
|
|
@@ -4,6 +4,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
6
|
var _apidomNsOpenapi = require("@swagger-api/apidom-ns-openapi-3-0");
|
|
7
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
7
8
|
var _index = _interopRequireDefault(require("./visitors/open-api-3-1/index.cjs"));
|
|
8
9
|
var _index2 = _interopRequireDefault(require("./visitors/open-api-3-1/info/index.cjs"));
|
|
9
10
|
var _index3 = _interopRequireDefault(require("./visitors/open-api-3-1/contact/index.cjs"));
|
|
@@ -20,8 +21,6 @@ var _index12 = _interopRequireDefault(require("./visitors/open-api-3-1/reference
|
|
|
20
21
|
var _index13 = _interopRequireDefault(require("./visitors/open-api-3-1/parameter/index.cjs"));
|
|
21
22
|
var _index14 = _interopRequireDefault(require("./visitors/open-api-3-1/header/index.cjs"));
|
|
22
23
|
var _index15 = _interopRequireDefault(require("./visitors/open-api-3-1/schema/index.cjs"));
|
|
23
|
-
var _$vocabularyVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/$vocabularyVisitor.cjs"));
|
|
24
|
-
var _$refVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/$refVisitor.cjs"));
|
|
25
24
|
var _$defsVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/$defsVisitor.cjs"));
|
|
26
25
|
var _AllOfVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/AllOfVisitor.cjs"));
|
|
27
26
|
var _AnyOfVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/AnyOfVisitor.cjs"));
|
|
@@ -30,10 +29,6 @@ var _DependentSchemasVisitor = _interopRequireDefault(require("./visitors/open-a
|
|
|
30
29
|
var _PrefixItemsVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/PrefixItemsVisitor.cjs"));
|
|
31
30
|
var _PropertiesVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/PropertiesVisitor.cjs"));
|
|
32
31
|
var _PatternPropertiesVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/PatternPropertiesVisitor.cjs"));
|
|
33
|
-
var _TypeVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/TypeVisitor.cjs"));
|
|
34
|
-
var _EnumVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/EnumVisitor.cjs"));
|
|
35
|
-
var _DependentRequiredVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/DependentRequiredVisitor.cjs"));
|
|
36
|
-
var _ExamplesVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/schema/ExamplesVisitor.cjs"));
|
|
37
32
|
var _index16 = _interopRequireDefault(require("./visitors/open-api-3-1/distriminator/index.cjs"));
|
|
38
33
|
var _index17 = _interopRequireDefault(require("./visitors/open-api-3-1/xml/index.cjs"));
|
|
39
34
|
var _SchemasVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/components/SchemasVisitor.cjs"));
|
|
@@ -52,6 +47,11 @@ var _index28 = _interopRequireDefault(require("./visitors/open-api-3-1/security-
|
|
|
52
47
|
var _index29 = _interopRequireDefault(require("./visitors/open-api-3-1/oauth-flows/index.cjs"));
|
|
53
48
|
var _index30 = _interopRequireDefault(require("./visitors/open-api-3-1/oauth-flow/index.cjs"));
|
|
54
49
|
var _WebhooksVisitor = _interopRequireDefault(require("./visitors/open-api-3-1/WebhooksVisitor.cjs"));
|
|
50
|
+
const {
|
|
51
|
+
JSONSchema: JSONSchemaVisitor,
|
|
52
|
+
LinkDescription: LinkDescriptionVisitor
|
|
53
|
+
} = _apidomNsJsonSchema.specificationObj.visitors.document.objects;
|
|
54
|
+
|
|
55
55
|
/**
|
|
56
56
|
* Specification object allows us to have complete control over visitors
|
|
57
57
|
* when traversing the ApiDOM.
|
|
@@ -350,31 +350,18 @@ const specification = {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
|
+
JSONSchema: {
|
|
354
|
+
$ref: '#/visitors/document/objects/Schema'
|
|
355
|
+
},
|
|
356
|
+
LinkDescription: {
|
|
357
|
+
...LinkDescriptionVisitor
|
|
358
|
+
},
|
|
353
359
|
Schema: {
|
|
354
360
|
$visitor: _index15.default,
|
|
355
361
|
fixedFields: {
|
|
362
|
+
...JSONSchemaVisitor.fixedFields,
|
|
356
363
|
// core vocabulary
|
|
357
|
-
$schema: {
|
|
358
|
-
$ref: '#/visitors/value'
|
|
359
|
-
},
|
|
360
|
-
$vocabulary: _$vocabularyVisitor.default,
|
|
361
|
-
$id: {
|
|
362
|
-
$ref: '#/visitors/value'
|
|
363
|
-
},
|
|
364
|
-
$anchor: {
|
|
365
|
-
$ref: '#/visitors/value'
|
|
366
|
-
},
|
|
367
|
-
$dynamicAnchor: {
|
|
368
|
-
$ref: '#/visitors/value'
|
|
369
|
-
},
|
|
370
|
-
$dynamicRef: {
|
|
371
|
-
$ref: '#/visitors/value'
|
|
372
|
-
},
|
|
373
|
-
$ref: _$refVisitor.default,
|
|
374
364
|
$defs: _$defsVisitor.default,
|
|
375
|
-
$comment: {
|
|
376
|
-
$ref: '#/visitors/value'
|
|
377
|
-
},
|
|
378
365
|
// applicator vocabulary
|
|
379
366
|
allOf: _AllOfVisitor.default,
|
|
380
367
|
anyOf: _AnyOfVisitor.default,
|
|
@@ -415,96 +402,7 @@ const specification = {
|
|
|
415
402
|
$ref: '#/visitors/document/objects/Schema'
|
|
416
403
|
},
|
|
417
404
|
// validation vocabulary
|
|
418
|
-
// validation Keywords for Any Instance Type
|
|
419
|
-
type: _TypeVisitor.default,
|
|
420
|
-
enum: _EnumVisitor.default,
|
|
421
|
-
const: {
|
|
422
|
-
$ref: '#/visitors/value'
|
|
423
|
-
},
|
|
424
|
-
// validation Keywords for Numeric Instances (number and integer)
|
|
425
|
-
multipleOf: {
|
|
426
|
-
$ref: '#/visitors/value'
|
|
427
|
-
},
|
|
428
|
-
maximum: {
|
|
429
|
-
$ref: '#/visitors/value'
|
|
430
|
-
},
|
|
431
|
-
exclusiveMaximum: {
|
|
432
|
-
$ref: '#/visitors/value'
|
|
433
|
-
},
|
|
434
|
-
minimum: {
|
|
435
|
-
$ref: '#/visitors/value'
|
|
436
|
-
},
|
|
437
|
-
exclusiveMinimum: {
|
|
438
|
-
$ref: '#/visitors/value'
|
|
439
|
-
},
|
|
440
|
-
// validation Keywords for Strings
|
|
441
|
-
maxLength: {
|
|
442
|
-
$ref: '#/visitors/value'
|
|
443
|
-
},
|
|
444
|
-
minLength: {
|
|
445
|
-
$ref: '#/visitors/value'
|
|
446
|
-
},
|
|
447
|
-
pattern: {
|
|
448
|
-
$ref: '#/visitors/value'
|
|
449
|
-
},
|
|
450
|
-
// validation Keywords for Arrays
|
|
451
|
-
maxItems: {
|
|
452
|
-
$ref: '#/visitors/value'
|
|
453
|
-
},
|
|
454
|
-
minItems: {
|
|
455
|
-
$ref: '#/visitors/value'
|
|
456
|
-
},
|
|
457
|
-
uniqueItems: {
|
|
458
|
-
$ref: '#/visitors/value'
|
|
459
|
-
},
|
|
460
|
-
maxContains: {
|
|
461
|
-
$ref: '#/visitors/value'
|
|
462
|
-
},
|
|
463
|
-
minContains: {
|
|
464
|
-
$ref: '#/visitors/value'
|
|
465
|
-
},
|
|
466
|
-
// validation Keywords for Objects
|
|
467
|
-
maxProperties: {
|
|
468
|
-
$ref: '#/visitors/value'
|
|
469
|
-
},
|
|
470
|
-
minProperties: {
|
|
471
|
-
$ref: '#/visitors/value'
|
|
472
|
-
},
|
|
473
|
-
required: {
|
|
474
|
-
$ref: '#/visitors/value'
|
|
475
|
-
},
|
|
476
|
-
dependentRequired: _DependentRequiredVisitor.default,
|
|
477
|
-
// basic Meta-Data Annotations vocabulary
|
|
478
|
-
title: {
|
|
479
|
-
$ref: '#/visitors/value'
|
|
480
|
-
},
|
|
481
|
-
description: {
|
|
482
|
-
$ref: '#/visitors/value'
|
|
483
|
-
},
|
|
484
|
-
default: {
|
|
485
|
-
$ref: '#/visitors/value'
|
|
486
|
-
},
|
|
487
|
-
deprecated: {
|
|
488
|
-
$ref: '#/visitors/value'
|
|
489
|
-
},
|
|
490
|
-
readOnly: {
|
|
491
|
-
$ref: '#/visitors/value'
|
|
492
|
-
},
|
|
493
|
-
writeOnly: {
|
|
494
|
-
$ref: '#/visitors/value'
|
|
495
|
-
},
|
|
496
|
-
examples: _ExamplesVisitor.default,
|
|
497
|
-
// semantic Content With "format" vocabulary
|
|
498
|
-
format: {
|
|
499
|
-
$ref: '#/visitors/value'
|
|
500
|
-
},
|
|
501
405
|
// contents of String-Encoded Data vocabulary
|
|
502
|
-
contentEncoding: {
|
|
503
|
-
$ref: '#/visitors/value'
|
|
504
|
-
},
|
|
505
|
-
contentMediaType: {
|
|
506
|
-
$ref: '#/visitors/value'
|
|
507
|
-
},
|
|
508
406
|
contentSchema: {
|
|
509
407
|
$ref: '#/visitors/document/objects/Schema'
|
|
510
408
|
},
|