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