@diplodoc/cli-tests 5.15.3 → 5.15.4
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/e2e/__snapshots__/translation.spec.ts.snap +209 -0
- package/e2e/translation.spec.ts +18 -0
- package/fixtures/cliAdapter.ts +1 -1
- package/mocks/translation/compose/input/openapi-spec.yaml.skl +41 -0
- package/mocks/translation/compose/input/openapi-spec.yaml.xliff +52 -0
- package/mocks/translation/compose/input/toc.yaml.skl +8 -0
- package/mocks/translation/compose/input/toc.yaml.xliff +16 -0
- package/mocks/translation/custom-schema/custom-openapi-schema-30.yaml +1054 -0
- package/mocks/translation/custom-schema/input/openapi-spec.yaml +42 -0
- package/mocks/translation/custom-schema/input/toc.yaml +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1054 @@
|
|
|
1
|
+
$id: https://spec.openapis.org/oas/3.0/schema/2021-09-28
|
|
2
|
+
$schema: http://json-schema.org/draft-04/schema#
|
|
3
|
+
description: The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3
|
|
4
|
+
type: object
|
|
5
|
+
required:
|
|
6
|
+
- openapi
|
|
7
|
+
- info
|
|
8
|
+
- paths
|
|
9
|
+
properties:
|
|
10
|
+
openapi:
|
|
11
|
+
type: string
|
|
12
|
+
pattern: ^3\.0\.\d(-.+)?$
|
|
13
|
+
info:
|
|
14
|
+
$ref: '#/definitions/Info'
|
|
15
|
+
externalDocs:
|
|
16
|
+
$ref: '#/definitions/ExternalDocumentation'
|
|
17
|
+
servers:
|
|
18
|
+
type: array
|
|
19
|
+
items:
|
|
20
|
+
$ref: '#/definitions/Server'
|
|
21
|
+
security:
|
|
22
|
+
type: array
|
|
23
|
+
items:
|
|
24
|
+
$ref: '#/definitions/SecurityRequirement'
|
|
25
|
+
tags:
|
|
26
|
+
type: array
|
|
27
|
+
items:
|
|
28
|
+
$ref: '#/definitions/Tag'
|
|
29
|
+
uniqueItems: true
|
|
30
|
+
paths:
|
|
31
|
+
$ref: '#/definitions/Paths'
|
|
32
|
+
components:
|
|
33
|
+
$ref: '#/definitions/Components'
|
|
34
|
+
patternProperties:
|
|
35
|
+
'^x-': {}
|
|
36
|
+
additionalProperties: false
|
|
37
|
+
definitions:
|
|
38
|
+
Reference:
|
|
39
|
+
type: object
|
|
40
|
+
required:
|
|
41
|
+
- $ref
|
|
42
|
+
patternProperties:
|
|
43
|
+
'^\$ref$':
|
|
44
|
+
type: string
|
|
45
|
+
format: uri-reference
|
|
46
|
+
Info:
|
|
47
|
+
type: object
|
|
48
|
+
required:
|
|
49
|
+
- title
|
|
50
|
+
- version
|
|
51
|
+
properties:
|
|
52
|
+
title:
|
|
53
|
+
type: string
|
|
54
|
+
translate: md
|
|
55
|
+
description:
|
|
56
|
+
type: string
|
|
57
|
+
translate: md
|
|
58
|
+
termsOfService:
|
|
59
|
+
type: string
|
|
60
|
+
format: uri-reference
|
|
61
|
+
contact:
|
|
62
|
+
$ref: '#/definitions/Contact'
|
|
63
|
+
license:
|
|
64
|
+
$ref: '#/definitions/License'
|
|
65
|
+
version:
|
|
66
|
+
type: string
|
|
67
|
+
patternProperties:
|
|
68
|
+
'^x-': {}
|
|
69
|
+
additionalProperties: false
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
Contact:
|
|
73
|
+
type: object
|
|
74
|
+
properties:
|
|
75
|
+
name:
|
|
76
|
+
type: string
|
|
77
|
+
url:
|
|
78
|
+
type: string
|
|
79
|
+
format: uri-reference
|
|
80
|
+
email:
|
|
81
|
+
type: string
|
|
82
|
+
format: email
|
|
83
|
+
patternProperties:
|
|
84
|
+
'^x-': {}
|
|
85
|
+
additionalProperties: false
|
|
86
|
+
|
|
87
|
+
License:
|
|
88
|
+
type: object
|
|
89
|
+
required:
|
|
90
|
+
- name
|
|
91
|
+
properties:
|
|
92
|
+
name:
|
|
93
|
+
type: string
|
|
94
|
+
url:
|
|
95
|
+
type: string
|
|
96
|
+
format: uri-reference
|
|
97
|
+
patternProperties:
|
|
98
|
+
'^x-': {}
|
|
99
|
+
additionalProperties: false
|
|
100
|
+
|
|
101
|
+
Server:
|
|
102
|
+
type: object
|
|
103
|
+
required:
|
|
104
|
+
- url
|
|
105
|
+
properties:
|
|
106
|
+
url:
|
|
107
|
+
type: string
|
|
108
|
+
description:
|
|
109
|
+
type: string
|
|
110
|
+
translate: md
|
|
111
|
+
variables:
|
|
112
|
+
type: object
|
|
113
|
+
additionalProperties:
|
|
114
|
+
$ref: '#/definitions/ServerVariable'
|
|
115
|
+
patternProperties:
|
|
116
|
+
'^x-': {}
|
|
117
|
+
additionalProperties: false
|
|
118
|
+
|
|
119
|
+
ServerVariable:
|
|
120
|
+
type: object
|
|
121
|
+
required:
|
|
122
|
+
- default
|
|
123
|
+
properties:
|
|
124
|
+
enum:
|
|
125
|
+
type: array
|
|
126
|
+
items:
|
|
127
|
+
type: string
|
|
128
|
+
default:
|
|
129
|
+
type: string
|
|
130
|
+
description:
|
|
131
|
+
type: string
|
|
132
|
+
translate: md
|
|
133
|
+
patternProperties:
|
|
134
|
+
'^x-': {}
|
|
135
|
+
additionalProperties: false
|
|
136
|
+
|
|
137
|
+
Components:
|
|
138
|
+
type: object
|
|
139
|
+
properties:
|
|
140
|
+
schemas:
|
|
141
|
+
type: object
|
|
142
|
+
patternProperties:
|
|
143
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
144
|
+
oneOf:
|
|
145
|
+
- $ref: '#/definitions/Schema'
|
|
146
|
+
- $ref: '#/definitions/Reference'
|
|
147
|
+
responses:
|
|
148
|
+
type: object
|
|
149
|
+
patternProperties:
|
|
150
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
151
|
+
oneOf:
|
|
152
|
+
- $ref: '#/definitions/Reference'
|
|
153
|
+
- $ref: '#/definitions/Response'
|
|
154
|
+
parameters:
|
|
155
|
+
type: object
|
|
156
|
+
patternProperties:
|
|
157
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
158
|
+
oneOf:
|
|
159
|
+
- $ref: '#/definitions/Reference'
|
|
160
|
+
- $ref: '#/definitions/Parameter'
|
|
161
|
+
examples:
|
|
162
|
+
type: object
|
|
163
|
+
patternProperties:
|
|
164
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
165
|
+
oneOf:
|
|
166
|
+
- $ref: '#/definitions/Reference'
|
|
167
|
+
- $ref: '#/definitions/Example'
|
|
168
|
+
requestBodies:
|
|
169
|
+
type: object
|
|
170
|
+
patternProperties:
|
|
171
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
172
|
+
oneOf:
|
|
173
|
+
- $ref: '#/definitions/Reference'
|
|
174
|
+
- $ref: '#/definitions/RequestBody'
|
|
175
|
+
headers:
|
|
176
|
+
type: object
|
|
177
|
+
patternProperties:
|
|
178
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
179
|
+
oneOf:
|
|
180
|
+
- $ref: '#/definitions/Reference'
|
|
181
|
+
- $ref: '#/definitions/Header'
|
|
182
|
+
securitySchemes:
|
|
183
|
+
type: object
|
|
184
|
+
patternProperties:
|
|
185
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
186
|
+
oneOf:
|
|
187
|
+
- $ref: '#/definitions/Reference'
|
|
188
|
+
- $ref: '#/definitions/SecurityScheme'
|
|
189
|
+
links:
|
|
190
|
+
type: object
|
|
191
|
+
patternProperties:
|
|
192
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
193
|
+
oneOf:
|
|
194
|
+
- $ref: '#/definitions/Reference'
|
|
195
|
+
- $ref: '#/definitions/Link'
|
|
196
|
+
callbacks:
|
|
197
|
+
type: object
|
|
198
|
+
patternProperties:
|
|
199
|
+
'^[a-zA-Z0-9\.\-_]+$':
|
|
200
|
+
oneOf:
|
|
201
|
+
- $ref: '#/definitions/Reference'
|
|
202
|
+
- $ref: '#/definitions/Callback'
|
|
203
|
+
patternProperties:
|
|
204
|
+
'^x-': {}
|
|
205
|
+
additionalProperties: false
|
|
206
|
+
|
|
207
|
+
Schema:
|
|
208
|
+
type: object
|
|
209
|
+
properties:
|
|
210
|
+
title:
|
|
211
|
+
type: string
|
|
212
|
+
translate: md
|
|
213
|
+
multipleOf:
|
|
214
|
+
type: number
|
|
215
|
+
minimum: 0
|
|
216
|
+
exclusiveMinimum: 0
|
|
217
|
+
maximum:
|
|
218
|
+
type: number
|
|
219
|
+
exclusiveMaximum:
|
|
220
|
+
type: boolean
|
|
221
|
+
default: false
|
|
222
|
+
minimum:
|
|
223
|
+
type: number
|
|
224
|
+
exclusiveMinimum:
|
|
225
|
+
type: boolean
|
|
226
|
+
default: false
|
|
227
|
+
maxLength:
|
|
228
|
+
type: integer
|
|
229
|
+
minimum: 0
|
|
230
|
+
minLength:
|
|
231
|
+
type: integer
|
|
232
|
+
minimum: 0
|
|
233
|
+
default: 0
|
|
234
|
+
pattern:
|
|
235
|
+
type: string
|
|
236
|
+
format: regex
|
|
237
|
+
maxItems:
|
|
238
|
+
type: integer
|
|
239
|
+
minimum: 0
|
|
240
|
+
minItems:
|
|
241
|
+
type: integer
|
|
242
|
+
minimum: 0
|
|
243
|
+
default: 0
|
|
244
|
+
uniqueItems:
|
|
245
|
+
type: boolean
|
|
246
|
+
default: false
|
|
247
|
+
maxProperties:
|
|
248
|
+
type: integer
|
|
249
|
+
minimum: 0
|
|
250
|
+
minProperties:
|
|
251
|
+
type: integer
|
|
252
|
+
minimum: 0
|
|
253
|
+
default: 0
|
|
254
|
+
required:
|
|
255
|
+
type: array
|
|
256
|
+
items:
|
|
257
|
+
type: string
|
|
258
|
+
minItems: 1
|
|
259
|
+
uniqueItems: true
|
|
260
|
+
enum:
|
|
261
|
+
type: array
|
|
262
|
+
items: {}
|
|
263
|
+
minItems: 1
|
|
264
|
+
uniqueItems: false
|
|
265
|
+
type:
|
|
266
|
+
type: string
|
|
267
|
+
enum:
|
|
268
|
+
- array
|
|
269
|
+
- boolean
|
|
270
|
+
- integer
|
|
271
|
+
- number
|
|
272
|
+
- object
|
|
273
|
+
- string
|
|
274
|
+
not:
|
|
275
|
+
oneOf:
|
|
276
|
+
- $ref: '#/definitions/Schema'
|
|
277
|
+
- $ref: '#/definitions/Reference'
|
|
278
|
+
allOf:
|
|
279
|
+
type: array
|
|
280
|
+
items:
|
|
281
|
+
oneOf:
|
|
282
|
+
- $ref: '#/definitions/Schema'
|
|
283
|
+
- $ref: '#/definitions/Reference'
|
|
284
|
+
oneOf:
|
|
285
|
+
type: array
|
|
286
|
+
items:
|
|
287
|
+
oneOf:
|
|
288
|
+
- $ref: '#/definitions/Schema'
|
|
289
|
+
- $ref: '#/definitions/Reference'
|
|
290
|
+
anyOf:
|
|
291
|
+
type: array
|
|
292
|
+
items:
|
|
293
|
+
oneOf:
|
|
294
|
+
- $ref: '#/definitions/Schema'
|
|
295
|
+
- $ref: '#/definitions/Reference'
|
|
296
|
+
items:
|
|
297
|
+
oneOf:
|
|
298
|
+
- $ref: '#/definitions/Schema'
|
|
299
|
+
- $ref: '#/definitions/Reference'
|
|
300
|
+
properties:
|
|
301
|
+
type: object
|
|
302
|
+
additionalProperties:
|
|
303
|
+
oneOf:
|
|
304
|
+
- $ref: '#/definitions/Schema'
|
|
305
|
+
- $ref: '#/definitions/Reference'
|
|
306
|
+
additionalProperties:
|
|
307
|
+
oneOf:
|
|
308
|
+
- $ref: '#/definitions/Schema'
|
|
309
|
+
- $ref: '#/definitions/Reference'
|
|
310
|
+
- type: boolean
|
|
311
|
+
default: true
|
|
312
|
+
description:
|
|
313
|
+
type: string
|
|
314
|
+
translate: md
|
|
315
|
+
format:
|
|
316
|
+
type: string
|
|
317
|
+
default: {}
|
|
318
|
+
nullable:
|
|
319
|
+
type: boolean
|
|
320
|
+
default: false
|
|
321
|
+
discriminator:
|
|
322
|
+
$ref: '#/definitions/Discriminator'
|
|
323
|
+
readOnly:
|
|
324
|
+
type: boolean
|
|
325
|
+
default: false
|
|
326
|
+
writeOnly:
|
|
327
|
+
type: boolean
|
|
328
|
+
default: false
|
|
329
|
+
example: {}
|
|
330
|
+
externalDocs:
|
|
331
|
+
$ref: '#/definitions/ExternalDocumentation'
|
|
332
|
+
deprecated:
|
|
333
|
+
type: boolean
|
|
334
|
+
default: false
|
|
335
|
+
xml:
|
|
336
|
+
$ref: '#/definitions/XML'
|
|
337
|
+
patternProperties:
|
|
338
|
+
'^x-': {}
|
|
339
|
+
additionalProperties: false
|
|
340
|
+
|
|
341
|
+
Discriminator:
|
|
342
|
+
type: object
|
|
343
|
+
required:
|
|
344
|
+
- propertyName
|
|
345
|
+
properties:
|
|
346
|
+
propertyName:
|
|
347
|
+
type: string
|
|
348
|
+
mapping:
|
|
349
|
+
type: object
|
|
350
|
+
additionalProperties:
|
|
351
|
+
type: string
|
|
352
|
+
|
|
353
|
+
XML:
|
|
354
|
+
type: object
|
|
355
|
+
properties:
|
|
356
|
+
name:
|
|
357
|
+
type: string
|
|
358
|
+
namespace:
|
|
359
|
+
type: string
|
|
360
|
+
format: uri
|
|
361
|
+
prefix:
|
|
362
|
+
type: string
|
|
363
|
+
attribute:
|
|
364
|
+
type: boolean
|
|
365
|
+
default: false
|
|
366
|
+
wrapped:
|
|
367
|
+
type: boolean
|
|
368
|
+
default: false
|
|
369
|
+
patternProperties:
|
|
370
|
+
'^x-': {}
|
|
371
|
+
additionalProperties: false
|
|
372
|
+
|
|
373
|
+
Response:
|
|
374
|
+
type: object
|
|
375
|
+
required:
|
|
376
|
+
- description
|
|
377
|
+
properties:
|
|
378
|
+
description:
|
|
379
|
+
type: string
|
|
380
|
+
translate: md
|
|
381
|
+
headers:
|
|
382
|
+
type: object
|
|
383
|
+
additionalProperties:
|
|
384
|
+
oneOf:
|
|
385
|
+
- $ref: '#/definitions/Header'
|
|
386
|
+
- $ref: '#/definitions/Reference'
|
|
387
|
+
content:
|
|
388
|
+
type: object
|
|
389
|
+
additionalProperties:
|
|
390
|
+
$ref: '#/definitions/MediaType'
|
|
391
|
+
links:
|
|
392
|
+
type: object
|
|
393
|
+
additionalProperties:
|
|
394
|
+
oneOf:
|
|
395
|
+
- $ref: '#/definitions/Link'
|
|
396
|
+
- $ref: '#/definitions/Reference'
|
|
397
|
+
patternProperties:
|
|
398
|
+
'^x-': {}
|
|
399
|
+
additionalProperties: false
|
|
400
|
+
|
|
401
|
+
MediaType:
|
|
402
|
+
type: object
|
|
403
|
+
properties:
|
|
404
|
+
schema:
|
|
405
|
+
oneOf:
|
|
406
|
+
- $ref: '#/definitions/Schema'
|
|
407
|
+
- $ref: '#/definitions/Reference'
|
|
408
|
+
example: {}
|
|
409
|
+
examples:
|
|
410
|
+
type: object
|
|
411
|
+
additionalProperties:
|
|
412
|
+
oneOf:
|
|
413
|
+
- $ref: '#/definitions/Example'
|
|
414
|
+
- $ref: '#/definitions/Reference'
|
|
415
|
+
encoding:
|
|
416
|
+
type: object
|
|
417
|
+
additionalProperties:
|
|
418
|
+
$ref: '#/definitions/Encoding'
|
|
419
|
+
patternProperties:
|
|
420
|
+
'^x-': {}
|
|
421
|
+
additionalProperties: false
|
|
422
|
+
allOf:
|
|
423
|
+
- $ref: '#/definitions/ExampleXORExamples'
|
|
424
|
+
|
|
425
|
+
Example:
|
|
426
|
+
type: object
|
|
427
|
+
properties:
|
|
428
|
+
summary:
|
|
429
|
+
type: string
|
|
430
|
+
translate: md
|
|
431
|
+
description:
|
|
432
|
+
type: string
|
|
433
|
+
translate: md
|
|
434
|
+
value: {}
|
|
435
|
+
externalValue:
|
|
436
|
+
type: string
|
|
437
|
+
format: uri-reference
|
|
438
|
+
patternProperties:
|
|
439
|
+
'^x-': {}
|
|
440
|
+
additionalProperties: false
|
|
441
|
+
|
|
442
|
+
Header:
|
|
443
|
+
type: object
|
|
444
|
+
properties:
|
|
445
|
+
description:
|
|
446
|
+
type: string
|
|
447
|
+
translate: md
|
|
448
|
+
required:
|
|
449
|
+
type: boolean
|
|
450
|
+
default: false
|
|
451
|
+
deprecated:
|
|
452
|
+
type: boolean
|
|
453
|
+
default: false
|
|
454
|
+
allowEmptyValue:
|
|
455
|
+
type: boolean
|
|
456
|
+
default: false
|
|
457
|
+
style:
|
|
458
|
+
type: string
|
|
459
|
+
enum:
|
|
460
|
+
- simple
|
|
461
|
+
default: simple
|
|
462
|
+
explode:
|
|
463
|
+
type: boolean
|
|
464
|
+
allowReserved:
|
|
465
|
+
type: boolean
|
|
466
|
+
default: false
|
|
467
|
+
schema:
|
|
468
|
+
oneOf:
|
|
469
|
+
- $ref: '#/definitions/Schema'
|
|
470
|
+
- $ref: '#/definitions/Reference'
|
|
471
|
+
content:
|
|
472
|
+
type: object
|
|
473
|
+
additionalProperties:
|
|
474
|
+
$ref: '#/definitions/MediaType'
|
|
475
|
+
minProperties: 1
|
|
476
|
+
maxProperties: 1
|
|
477
|
+
example: {}
|
|
478
|
+
examples:
|
|
479
|
+
type: object
|
|
480
|
+
additionalProperties:
|
|
481
|
+
oneOf:
|
|
482
|
+
- $ref: '#/definitions/Example'
|
|
483
|
+
- $ref: '#/definitions/Reference'
|
|
484
|
+
patternProperties:
|
|
485
|
+
'^x-': {}
|
|
486
|
+
additionalProperties: false
|
|
487
|
+
allOf:
|
|
488
|
+
- $ref: '#/definitions/ExampleXORExamples'
|
|
489
|
+
- $ref: '#/definitions/SchemaXORContent'
|
|
490
|
+
|
|
491
|
+
Paths:
|
|
492
|
+
type: object
|
|
493
|
+
patternProperties:
|
|
494
|
+
'^\/':
|
|
495
|
+
$ref: '#/definitions/PathItem'
|
|
496
|
+
'^x-': {}
|
|
497
|
+
additionalProperties: false
|
|
498
|
+
|
|
499
|
+
PathItem:
|
|
500
|
+
type: object
|
|
501
|
+
properties:
|
|
502
|
+
$ref:
|
|
503
|
+
type: string
|
|
504
|
+
summary:
|
|
505
|
+
type: string
|
|
506
|
+
translate: md
|
|
507
|
+
description:
|
|
508
|
+
type: string
|
|
509
|
+
translate: md
|
|
510
|
+
get:
|
|
511
|
+
$ref: '#/definitions/Operation'
|
|
512
|
+
put:
|
|
513
|
+
$ref: '#/definitions/Operation'
|
|
514
|
+
post:
|
|
515
|
+
$ref: '#/definitions/Operation'
|
|
516
|
+
delete:
|
|
517
|
+
$ref: '#/definitions/Operation'
|
|
518
|
+
options:
|
|
519
|
+
$ref: '#/definitions/Operation'
|
|
520
|
+
head:
|
|
521
|
+
$ref: '#/definitions/Operation'
|
|
522
|
+
patch:
|
|
523
|
+
$ref: '#/definitions/Operation'
|
|
524
|
+
trace:
|
|
525
|
+
$ref: '#/definitions/Operation'
|
|
526
|
+
servers:
|
|
527
|
+
type: array
|
|
528
|
+
items:
|
|
529
|
+
$ref: '#/definitions/Server'
|
|
530
|
+
parameters:
|
|
531
|
+
type: array
|
|
532
|
+
items:
|
|
533
|
+
oneOf:
|
|
534
|
+
- $ref: '#/definitions/Parameter'
|
|
535
|
+
- $ref: '#/definitions/Reference'
|
|
536
|
+
uniqueItems: true
|
|
537
|
+
patternProperties:
|
|
538
|
+
'^x-': {}
|
|
539
|
+
additionalProperties: false
|
|
540
|
+
|
|
541
|
+
Operation:
|
|
542
|
+
type: object
|
|
543
|
+
required:
|
|
544
|
+
- responses
|
|
545
|
+
properties:
|
|
546
|
+
tags:
|
|
547
|
+
type: array
|
|
548
|
+
items:
|
|
549
|
+
type: string
|
|
550
|
+
translate: md
|
|
551
|
+
summary:
|
|
552
|
+
type: string
|
|
553
|
+
translate: md
|
|
554
|
+
description:
|
|
555
|
+
type: string
|
|
556
|
+
translate: md
|
|
557
|
+
externalDocs:
|
|
558
|
+
$ref: '#/definitions/ExternalDocumentation'
|
|
559
|
+
operationId:
|
|
560
|
+
type: string
|
|
561
|
+
parameters:
|
|
562
|
+
type: array
|
|
563
|
+
items:
|
|
564
|
+
oneOf:
|
|
565
|
+
- $ref: '#/definitions/Parameter'
|
|
566
|
+
- $ref: '#/definitions/Reference'
|
|
567
|
+
uniqueItems: true
|
|
568
|
+
requestBody:
|
|
569
|
+
oneOf:
|
|
570
|
+
- $ref: '#/definitions/RequestBody'
|
|
571
|
+
- $ref: '#/definitions/Reference'
|
|
572
|
+
responses:
|
|
573
|
+
$ref: '#/definitions/Responses'
|
|
574
|
+
callbacks:
|
|
575
|
+
type: object
|
|
576
|
+
additionalProperties:
|
|
577
|
+
oneOf:
|
|
578
|
+
- $ref: '#/definitions/Callback'
|
|
579
|
+
- $ref: '#/definitions/Reference'
|
|
580
|
+
deprecated:
|
|
581
|
+
type: boolean
|
|
582
|
+
default: false
|
|
583
|
+
security:
|
|
584
|
+
type: array
|
|
585
|
+
items:
|
|
586
|
+
$ref: '#/definitions/SecurityRequirement'
|
|
587
|
+
servers:
|
|
588
|
+
type: array
|
|
589
|
+
items:
|
|
590
|
+
$ref: '#/definitions/Server'
|
|
591
|
+
patternProperties:
|
|
592
|
+
'^x-': {}
|
|
593
|
+
additionalProperties: false
|
|
594
|
+
|
|
595
|
+
Responses:
|
|
596
|
+
type: object
|
|
597
|
+
properties:
|
|
598
|
+
default:
|
|
599
|
+
oneOf:
|
|
600
|
+
- $ref: '#/definitions/Response'
|
|
601
|
+
- $ref: '#/definitions/Reference'
|
|
602
|
+
patternProperties:
|
|
603
|
+
'^[1-5](?:\d{2}|XX)$':
|
|
604
|
+
oneOf:
|
|
605
|
+
- $ref: '#/definitions/Response'
|
|
606
|
+
- $ref: '#/definitions/Reference'
|
|
607
|
+
'^x-': {}
|
|
608
|
+
minProperties: 1
|
|
609
|
+
additionalProperties: false
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
SecurityRequirement:
|
|
613
|
+
type: object
|
|
614
|
+
additionalProperties:
|
|
615
|
+
type: array
|
|
616
|
+
items:
|
|
617
|
+
type: string
|
|
618
|
+
|
|
619
|
+
Tag:
|
|
620
|
+
type: object
|
|
621
|
+
required:
|
|
622
|
+
- name
|
|
623
|
+
properties:
|
|
624
|
+
name:
|
|
625
|
+
type: string
|
|
626
|
+
description:
|
|
627
|
+
type: string
|
|
628
|
+
translate: md
|
|
629
|
+
externalDocs:
|
|
630
|
+
$ref: '#/definitions/ExternalDocumentation'
|
|
631
|
+
patternProperties:
|
|
632
|
+
'^x-': {}
|
|
633
|
+
additionalProperties: false
|
|
634
|
+
|
|
635
|
+
ExternalDocumentation:
|
|
636
|
+
type: object
|
|
637
|
+
required:
|
|
638
|
+
- url
|
|
639
|
+
properties:
|
|
640
|
+
description:
|
|
641
|
+
type: string
|
|
642
|
+
translate: md
|
|
643
|
+
url:
|
|
644
|
+
type: string
|
|
645
|
+
format: uri-reference
|
|
646
|
+
patternProperties:
|
|
647
|
+
'^x-': {}
|
|
648
|
+
additionalProperties: false
|
|
649
|
+
|
|
650
|
+
ExampleXORExamples:
|
|
651
|
+
description: Example and examples are mutually exclusive
|
|
652
|
+
not:
|
|
653
|
+
required: [example, examples]
|
|
654
|
+
|
|
655
|
+
SchemaXORContent:
|
|
656
|
+
description: Schema and content are mutually exclusive, at least one is required
|
|
657
|
+
not:
|
|
658
|
+
required: [schema, content]
|
|
659
|
+
oneOf:
|
|
660
|
+
- required: [schema]
|
|
661
|
+
- required: [content]
|
|
662
|
+
description: Some properties are not allowed if content is present
|
|
663
|
+
allOf:
|
|
664
|
+
- not:
|
|
665
|
+
required: [style]
|
|
666
|
+
- not:
|
|
667
|
+
required: [explode]
|
|
668
|
+
- not:
|
|
669
|
+
required: [allowReserved]
|
|
670
|
+
- not:
|
|
671
|
+
required: [example]
|
|
672
|
+
- not:
|
|
673
|
+
required: [examples]
|
|
674
|
+
|
|
675
|
+
Parameter:
|
|
676
|
+
type: object
|
|
677
|
+
properties:
|
|
678
|
+
name:
|
|
679
|
+
type: string
|
|
680
|
+
in:
|
|
681
|
+
type: string
|
|
682
|
+
description:
|
|
683
|
+
type: string
|
|
684
|
+
translate: md
|
|
685
|
+
required:
|
|
686
|
+
type: boolean
|
|
687
|
+
default: false
|
|
688
|
+
deprecated:
|
|
689
|
+
type: boolean
|
|
690
|
+
default: false
|
|
691
|
+
allowEmptyValue:
|
|
692
|
+
type: boolean
|
|
693
|
+
default: false
|
|
694
|
+
style:
|
|
695
|
+
type: string
|
|
696
|
+
explode:
|
|
697
|
+
type: boolean
|
|
698
|
+
allowReserved:
|
|
699
|
+
type: boolean
|
|
700
|
+
default: false
|
|
701
|
+
schema:
|
|
702
|
+
oneOf:
|
|
703
|
+
- $ref: '#/definitions/Schema'
|
|
704
|
+
- $ref: '#/definitions/Reference'
|
|
705
|
+
content:
|
|
706
|
+
type: object
|
|
707
|
+
additionalProperties:
|
|
708
|
+
$ref: '#/definitions/MediaType'
|
|
709
|
+
minProperties: 1
|
|
710
|
+
maxProperties: 1
|
|
711
|
+
example: {}
|
|
712
|
+
examples:
|
|
713
|
+
type: object
|
|
714
|
+
additionalProperties:
|
|
715
|
+
oneOf:
|
|
716
|
+
- $ref: '#/definitions/Example'
|
|
717
|
+
- $ref: '#/definitions/Reference'
|
|
718
|
+
patternProperties:
|
|
719
|
+
'^x-': {}
|
|
720
|
+
additionalProperties: false
|
|
721
|
+
required:
|
|
722
|
+
- name
|
|
723
|
+
- in
|
|
724
|
+
allOf:
|
|
725
|
+
- $ref: '#/definitions/ExampleXORExamples'
|
|
726
|
+
- $ref: '#/definitions/SchemaXORContent'
|
|
727
|
+
oneOf:
|
|
728
|
+
- $ref: '#/definitions/PathParameter'
|
|
729
|
+
- $ref: '#/definitions/QueryParameter'
|
|
730
|
+
- $ref: '#/definitions/HeaderParameter'
|
|
731
|
+
- $ref: '#/definitions/CookieParameter'
|
|
732
|
+
|
|
733
|
+
PathParameter:
|
|
734
|
+
description: Parameter in path
|
|
735
|
+
required:
|
|
736
|
+
- required
|
|
737
|
+
properties:
|
|
738
|
+
in:
|
|
739
|
+
enum: [path]
|
|
740
|
+
style:
|
|
741
|
+
enum: [matrix, label, simple]
|
|
742
|
+
default: simple
|
|
743
|
+
required:
|
|
744
|
+
enum: [true]
|
|
745
|
+
|
|
746
|
+
QueryParameter:
|
|
747
|
+
description: Parameter in query
|
|
748
|
+
properties:
|
|
749
|
+
in:
|
|
750
|
+
enum: [query]
|
|
751
|
+
style:
|
|
752
|
+
enum: [form, spaceDelimited, pipeDelimited, deepObject]
|
|
753
|
+
default: form
|
|
754
|
+
|
|
755
|
+
HeaderParameter:
|
|
756
|
+
description: Parameter in header
|
|
757
|
+
properties:
|
|
758
|
+
in:
|
|
759
|
+
enum: [header]
|
|
760
|
+
style:
|
|
761
|
+
enum: [simple]
|
|
762
|
+
default: simple
|
|
763
|
+
|
|
764
|
+
CookieParameter:
|
|
765
|
+
description: Parameter in cookie
|
|
766
|
+
properties:
|
|
767
|
+
in:
|
|
768
|
+
enum: [cookie]
|
|
769
|
+
style:
|
|
770
|
+
enum: [form]
|
|
771
|
+
default: form
|
|
772
|
+
|
|
773
|
+
RequestBody:
|
|
774
|
+
type: object
|
|
775
|
+
required:
|
|
776
|
+
- content
|
|
777
|
+
properties:
|
|
778
|
+
description:
|
|
779
|
+
type: string
|
|
780
|
+
translate: md
|
|
781
|
+
content:
|
|
782
|
+
type: object
|
|
783
|
+
additionalProperties:
|
|
784
|
+
$ref: '#/definitions/MediaType'
|
|
785
|
+
required:
|
|
786
|
+
type: boolean
|
|
787
|
+
default: false
|
|
788
|
+
patternProperties:
|
|
789
|
+
'^x-': {}
|
|
790
|
+
additionalProperties: false
|
|
791
|
+
|
|
792
|
+
SecurityScheme:
|
|
793
|
+
oneOf:
|
|
794
|
+
- $ref: '#/definitions/APIKeySecurityScheme'
|
|
795
|
+
- $ref: '#/definitions/HTTPSecurityScheme'
|
|
796
|
+
- $ref: '#/definitions/OAuth2SecurityScheme'
|
|
797
|
+
- $ref: '#/definitions/OpenIdConnectSecurityScheme'
|
|
798
|
+
|
|
799
|
+
APIKeySecurityScheme:
|
|
800
|
+
type: object
|
|
801
|
+
required:
|
|
802
|
+
- type
|
|
803
|
+
- name
|
|
804
|
+
- in
|
|
805
|
+
properties:
|
|
806
|
+
type:
|
|
807
|
+
type: string
|
|
808
|
+
enum:
|
|
809
|
+
- apiKey
|
|
810
|
+
name:
|
|
811
|
+
type: string
|
|
812
|
+
in:
|
|
813
|
+
type: string
|
|
814
|
+
enum:
|
|
815
|
+
- header
|
|
816
|
+
- query
|
|
817
|
+
- cookie
|
|
818
|
+
description:
|
|
819
|
+
type: string
|
|
820
|
+
translate: md
|
|
821
|
+
patternProperties:
|
|
822
|
+
'^x-': {}
|
|
823
|
+
additionalProperties: false
|
|
824
|
+
|
|
825
|
+
HTTPSecurityScheme:
|
|
826
|
+
type: object
|
|
827
|
+
required:
|
|
828
|
+
- scheme
|
|
829
|
+
- type
|
|
830
|
+
properties:
|
|
831
|
+
scheme:
|
|
832
|
+
type: string
|
|
833
|
+
bearerFormat:
|
|
834
|
+
type: string
|
|
835
|
+
description:
|
|
836
|
+
type: string
|
|
837
|
+
translate: md
|
|
838
|
+
type:
|
|
839
|
+
type: string
|
|
840
|
+
enum:
|
|
841
|
+
- http
|
|
842
|
+
patternProperties:
|
|
843
|
+
'^x-': {}
|
|
844
|
+
additionalProperties: false
|
|
845
|
+
oneOf:
|
|
846
|
+
- description: Bearer
|
|
847
|
+
properties:
|
|
848
|
+
scheme:
|
|
849
|
+
type: string
|
|
850
|
+
pattern: ^[Bb][Ee][Aa][Rr][Ee][Rr]$
|
|
851
|
+
|
|
852
|
+
- description: Non Bearer
|
|
853
|
+
not:
|
|
854
|
+
required: [bearerFormat]
|
|
855
|
+
properties:
|
|
856
|
+
scheme:
|
|
857
|
+
not:
|
|
858
|
+
type: string
|
|
859
|
+
pattern: ^[Bb][Ee][Aa][Rr][Ee][Rr]$
|
|
860
|
+
|
|
861
|
+
OAuth2SecurityScheme:
|
|
862
|
+
type: object
|
|
863
|
+
required:
|
|
864
|
+
- type
|
|
865
|
+
- flows
|
|
866
|
+
properties:
|
|
867
|
+
type:
|
|
868
|
+
type: string
|
|
869
|
+
enum:
|
|
870
|
+
- oauth2
|
|
871
|
+
flows:
|
|
872
|
+
$ref: '#/definitions/OAuthFlows'
|
|
873
|
+
description:
|
|
874
|
+
type: string
|
|
875
|
+
translate: md
|
|
876
|
+
patternProperties:
|
|
877
|
+
'^x-': {}
|
|
878
|
+
additionalProperties: false
|
|
879
|
+
|
|
880
|
+
OpenIdConnectSecurityScheme:
|
|
881
|
+
type: object
|
|
882
|
+
required:
|
|
883
|
+
- type
|
|
884
|
+
- openIdConnectUrl
|
|
885
|
+
properties:
|
|
886
|
+
type:
|
|
887
|
+
type: string
|
|
888
|
+
enum:
|
|
889
|
+
- openIdConnect
|
|
890
|
+
openIdConnectUrl:
|
|
891
|
+
type: string
|
|
892
|
+
format: uri-reference
|
|
893
|
+
description:
|
|
894
|
+
type: string
|
|
895
|
+
translate: md
|
|
896
|
+
patternProperties:
|
|
897
|
+
'^x-': {}
|
|
898
|
+
additionalProperties: false
|
|
899
|
+
|
|
900
|
+
OAuthFlows:
|
|
901
|
+
type: object
|
|
902
|
+
properties:
|
|
903
|
+
implicit:
|
|
904
|
+
$ref: '#/definitions/ImplicitOAuthFlow'
|
|
905
|
+
password:
|
|
906
|
+
$ref: '#/definitions/PasswordOAuthFlow'
|
|
907
|
+
clientCredentials:
|
|
908
|
+
$ref: '#/definitions/ClientCredentialsFlow'
|
|
909
|
+
authorizationCode:
|
|
910
|
+
$ref: '#/definitions/AuthorizationCodeOAuthFlow'
|
|
911
|
+
patternProperties:
|
|
912
|
+
'^x-': {}
|
|
913
|
+
additionalProperties: false
|
|
914
|
+
|
|
915
|
+
ImplicitOAuthFlow:
|
|
916
|
+
type: object
|
|
917
|
+
required:
|
|
918
|
+
- authorizationUrl
|
|
919
|
+
- scopes
|
|
920
|
+
properties:
|
|
921
|
+
authorizationUrl:
|
|
922
|
+
type: string
|
|
923
|
+
format: uri-reference
|
|
924
|
+
refreshUrl:
|
|
925
|
+
type: string
|
|
926
|
+
format: uri-reference
|
|
927
|
+
scopes:
|
|
928
|
+
type: object
|
|
929
|
+
additionalProperties:
|
|
930
|
+
type: string
|
|
931
|
+
patternProperties:
|
|
932
|
+
'^x-': {}
|
|
933
|
+
additionalProperties: false
|
|
934
|
+
|
|
935
|
+
PasswordOAuthFlow:
|
|
936
|
+
type: object
|
|
937
|
+
required:
|
|
938
|
+
- tokenUrl
|
|
939
|
+
- scopes
|
|
940
|
+
properties:
|
|
941
|
+
tokenUrl:
|
|
942
|
+
type: string
|
|
943
|
+
format: uri-reference
|
|
944
|
+
refreshUrl:
|
|
945
|
+
type: string
|
|
946
|
+
format: uri-reference
|
|
947
|
+
scopes:
|
|
948
|
+
type: object
|
|
949
|
+
additionalProperties:
|
|
950
|
+
type: string
|
|
951
|
+
patternProperties:
|
|
952
|
+
'^x-': {}
|
|
953
|
+
additionalProperties: false
|
|
954
|
+
|
|
955
|
+
ClientCredentialsFlow:
|
|
956
|
+
type: object
|
|
957
|
+
required:
|
|
958
|
+
- tokenUrl
|
|
959
|
+
- scopes
|
|
960
|
+
properties:
|
|
961
|
+
tokenUrl:
|
|
962
|
+
type: string
|
|
963
|
+
format: uri-reference
|
|
964
|
+
refreshUrl:
|
|
965
|
+
type: string
|
|
966
|
+
format: uri-reference
|
|
967
|
+
scopes:
|
|
968
|
+
type: object
|
|
969
|
+
additionalProperties:
|
|
970
|
+
type: string
|
|
971
|
+
patternProperties:
|
|
972
|
+
'^x-': {}
|
|
973
|
+
additionalProperties: false
|
|
974
|
+
|
|
975
|
+
AuthorizationCodeOAuthFlow:
|
|
976
|
+
type: object
|
|
977
|
+
required:
|
|
978
|
+
- authorizationUrl
|
|
979
|
+
- tokenUrl
|
|
980
|
+
- scopes
|
|
981
|
+
properties:
|
|
982
|
+
authorizationUrl:
|
|
983
|
+
type: string
|
|
984
|
+
format: uri-reference
|
|
985
|
+
tokenUrl:
|
|
986
|
+
type: string
|
|
987
|
+
format: uri-reference
|
|
988
|
+
refreshUrl:
|
|
989
|
+
type: string
|
|
990
|
+
format: uri-reference
|
|
991
|
+
scopes:
|
|
992
|
+
type: object
|
|
993
|
+
additionalProperties:
|
|
994
|
+
type: string
|
|
995
|
+
patternProperties:
|
|
996
|
+
'^x-': {}
|
|
997
|
+
additionalProperties: false
|
|
998
|
+
|
|
999
|
+
Link:
|
|
1000
|
+
type: object
|
|
1001
|
+
properties:
|
|
1002
|
+
operationId:
|
|
1003
|
+
type: string
|
|
1004
|
+
operationRef:
|
|
1005
|
+
type: string
|
|
1006
|
+
parameters:
|
|
1007
|
+
type: object
|
|
1008
|
+
additionalProperties: {}
|
|
1009
|
+
requestBody: {}
|
|
1010
|
+
description:
|
|
1011
|
+
type: string
|
|
1012
|
+
translate: md
|
|
1013
|
+
server:
|
|
1014
|
+
$ref: '#/definitions/Server'
|
|
1015
|
+
patternProperties:
|
|
1016
|
+
'^x-': {}
|
|
1017
|
+
additionalProperties: false
|
|
1018
|
+
not:
|
|
1019
|
+
description: Operation Id and Operation Ref are mutually exclusive
|
|
1020
|
+
required: [operationId, operationRef]
|
|
1021
|
+
|
|
1022
|
+
Callback:
|
|
1023
|
+
type: object
|
|
1024
|
+
additionalProperties:
|
|
1025
|
+
$ref: '#/definitions/PathItem'
|
|
1026
|
+
patternProperties:
|
|
1027
|
+
'^x-': {}
|
|
1028
|
+
|
|
1029
|
+
Encoding:
|
|
1030
|
+
type: object
|
|
1031
|
+
properties:
|
|
1032
|
+
contentType:
|
|
1033
|
+
type: string
|
|
1034
|
+
headers:
|
|
1035
|
+
type: object
|
|
1036
|
+
additionalProperties:
|
|
1037
|
+
oneOf:
|
|
1038
|
+
- $ref: '#/definitions/Header'
|
|
1039
|
+
- $ref: '#/definitions/Reference'
|
|
1040
|
+
style:
|
|
1041
|
+
type: string
|
|
1042
|
+
enum:
|
|
1043
|
+
- form
|
|
1044
|
+
- spaceDelimited
|
|
1045
|
+
- pipeDelimited
|
|
1046
|
+
- deepObject
|
|
1047
|
+
explode:
|
|
1048
|
+
type: boolean
|
|
1049
|
+
allowReserved:
|
|
1050
|
+
type: boolean
|
|
1051
|
+
default: false
|
|
1052
|
+
patternProperties:
|
|
1053
|
+
'^x-': {}
|
|
1054
|
+
additionalProperties: false
|