@openlint/ruleset-spectral-oas 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +11 -2
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.js +8 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/oas/functions/index.d.ts +15 -0
  7. package/dist/oas/functions/index.js +33 -0
  8. package/dist/oas/functions/index.js.map +1 -0
  9. package/dist/oas/functions/oasDiscriminator.d.ts +6 -0
  10. package/dist/oas/functions/oasDiscriminator.js +39 -0
  11. package/dist/oas/functions/oasDiscriminator.js.map +1 -0
  12. package/dist/oas/functions/oasDocumentSchema.d.ts +2 -0
  13. package/dist/oas/functions/oasDocumentSchema.js +104 -0
  14. package/dist/oas/functions/oasDocumentSchema.js.map +1 -0
  15. package/dist/oas/functions/oasExample.d.ts +7 -0
  16. package/dist/oas/functions/oasExample.js +217 -0
  17. package/dist/oas/functions/oasExample.js.map +1 -0
  18. package/dist/oas/functions/oasOpFormDataConsumeCheck.d.ts +6 -0
  19. package/dist/oas/functions/oasOpFormDataConsumeCheck.js +30 -0
  20. package/dist/oas/functions/oasOpFormDataConsumeCheck.js.map +1 -0
  21. package/dist/oas/functions/oasOpIdUnique.d.ts +2 -0
  22. package/dist/oas/functions/oasOpIdUnique.js +35 -0
  23. package/dist/oas/functions/oasOpIdUnique.js.map +1 -0
  24. package/dist/oas/functions/oasOpParams.d.ts +2 -0
  25. package/dist/oas/functions/oasOpParams.js +75 -0
  26. package/dist/oas/functions/oasOpParams.js.map +1 -0
  27. package/dist/oas/functions/oasOpSuccessResponse.d.ts +2 -0
  28. package/dist/oas/functions/oasOpSuccessResponse.js +27 -0
  29. package/dist/oas/functions/oasOpSuccessResponse.js.map +1 -0
  30. package/dist/oas/functions/oasPathParam.d.ts +2 -0
  31. package/dist/oas/functions/oasPathParam.js +135 -0
  32. package/dist/oas/functions/oasPathParam.js.map +1 -0
  33. package/dist/oas/functions/oasSchema.d.ts +5 -0
  34. package/dist/oas/functions/oasSchema.js +81 -0
  35. package/dist/oas/functions/oasSchema.js.map +1 -0
  36. package/dist/oas/functions/oasSecurityDefined.d.ts +5 -0
  37. package/dist/oas/functions/oasSecurityDefined.js +76 -0
  38. package/dist/oas/functions/oasSecurityDefined.js.map +1 -0
  39. package/dist/oas/functions/oasTagDefined.d.ts +2 -0
  40. package/dist/oas/functions/oasTagDefined.js +42 -0
  41. package/dist/oas/functions/oasTagDefined.js.map +1 -0
  42. package/dist/oas/functions/oasUnusedComponent.d.ts +4 -0
  43. package/dist/oas/functions/oasUnusedComponent.js +40 -0
  44. package/dist/oas/functions/oasUnusedComponent.js.map +1 -0
  45. package/dist/oas/functions/refSiblings.d.ts +2 -0
  46. package/dist/oas/functions/refSiblings.js +42 -0
  47. package/dist/oas/functions/refSiblings.js.map +1 -0
  48. package/dist/oas/functions/typedEnum.d.ts +7 -0
  49. package/dist/oas/functions/typedEnum.js +76 -0
  50. package/dist/oas/functions/typedEnum.js.map +1 -0
  51. package/dist/oas/functions/utils/getAllOperations.d.ts +7 -0
  52. package/dist/oas/functions/utils/getAllOperations.js +31 -0
  53. package/dist/oas/functions/utils/getAllOperations.js.map +1 -0
  54. package/dist/oas/functions/utils/isObject.d.ts +2 -0
  55. package/dist/oas/functions/utils/isObject.js +7 -0
  56. package/dist/oas/functions/utils/isObject.js.map +1 -0
  57. package/dist/oas/index.d.ts +733 -0
  58. package/dist/oas/index.js +765 -0
  59. package/dist/oas/index.js.map +1 -0
  60. package/dist/oas/schemas/__fixtures__/validate.d.ts +1 -0
  61. package/dist/oas/schemas/__fixtures__/validate.js +3 -0
  62. package/dist/oas/schemas/__fixtures__/validate.js.map +1 -0
  63. package/dist/oas/schemas/json-schema/draft-04.json +137 -0
  64. package/dist/oas/schemas/json-schema/draft-2020-12/index.json +54 -0
  65. package/dist/oas/schemas/json-schema/draft-2020-12/validation.json +101 -0
  66. package/dist/oas/schemas/oas/v2.0.json +1478 -0
  67. package/dist/oas/schemas/oas/v3.0.json +1652 -0
  68. package/dist/oas/schemas/oas/v3.1/dialect.schema.json +35 -0
  69. package/dist/oas/schemas/oas/v3.1/index.json +1276 -0
  70. package/dist/oas/schemas/oas/v3.1/meta.schema.json +93 -0
  71. package/dist/oas/schemas/oas/v3.2/dialect.schema.json +25 -0
  72. package/dist/oas/schemas/oas/v3.2/index.json +1527 -0
  73. package/dist/oas/schemas/oas/v3.2/meta.schema.json +103 -0
  74. package/dist/oas/schemas/validators.d.ts +66 -0
  75. package/dist/oas/schemas/validators.js +12991 -0
  76. package/dist/oas/schemas/validators.js.map +1 -0
  77. package/dist/shared/functions/index.d.ts +2 -0
  78. package/dist/shared/functions/index.js +7 -0
  79. package/dist/shared/functions/index.js.map +1 -0
  80. package/dist/shared/functions/serverVariables/index.d.ts +16 -0
  81. package/dist/shared/functions/serverVariables/index.js +154 -0
  82. package/dist/shared/functions/serverVariables/index.js.map +1 -0
  83. package/dist/shared/functions/serverVariables/utils/applyUrlVariables.d.ts +3 -0
  84. package/dist/shared/functions/serverVariables/utils/applyUrlVariables.js +32 -0
  85. package/dist/shared/functions/serverVariables/utils/applyUrlVariables.js.map +1 -0
  86. package/dist/shared/functions/serverVariables/utils/parseUrlVariables.d.ts +1 -0
  87. package/dist/shared/functions/serverVariables/utils/parseUrlVariables.js +12 -0
  88. package/dist/shared/functions/serverVariables/utils/parseUrlVariables.js.map +1 -0
  89. package/dist/shared/functions/uniquenessTags.d.ts +5 -0
  90. package/dist/shared/functions/uniquenessTags.js +42 -0
  91. package/dist/shared/functions/uniquenessTags.js.map +1 -0
  92. package/dist/shared/utils/getMissingProps.d.ts +1 -0
  93. package/dist/shared/utils/getMissingProps.js +9 -0
  94. package/dist/shared/utils/getMissingProps.js.map +1 -0
  95. package/dist/shared/utils/getRedundantProps.d.ts +1 -0
  96. package/dist/shared/utils/getRedundantProps.js +9 -0
  97. package/dist/shared/utils/getRedundantProps.js.map +1 -0
  98. package/package.json +47 -4
@@ -0,0 +1,1527 @@
1
+ {
2
+ "$id": "https://spec.openapis.org/oas/3.2/schema/2025-11-23",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "description": "The description of OpenAPI v3.2.x Documents without Schema Object validation",
5
+ "type": "object",
6
+ "properties": {
7
+ "openapi": {
8
+ "type": "string",
9
+ "pattern": "^3\\.2\\.\\d+(-.+)?$"
10
+ },
11
+ "$self": {
12
+ "type": "string",
13
+ "format": "uri-reference",
14
+ "$comment": "MUST NOT contain a fragment",
15
+ "pattern": "^[^#]*$"
16
+ },
17
+ "info": {
18
+ "$ref": "#/$defs/info"
19
+ },
20
+ "jsonSchemaDialect": {
21
+ "type": "string",
22
+ "format": "uri-reference",
23
+ "default": "https://spec.openapis.org/oas/3.2/dialect/2025-09-17"
24
+ },
25
+ "servers": {
26
+ "type": "array",
27
+ "items": {
28
+ "$ref": "#/$defs/server"
29
+ },
30
+ "default": [
31
+ {
32
+ "url": "/"
33
+ }
34
+ ]
35
+ },
36
+ "paths": {
37
+ "$ref": "#/$defs/paths"
38
+ },
39
+ "webhooks": {
40
+ "type": "object",
41
+ "additionalProperties": {
42
+ "$ref": "#/$defs/path-item"
43
+ }
44
+ },
45
+ "components": {
46
+ "$ref": "#/$defs/components"
47
+ },
48
+ "security": {
49
+ "type": "array",
50
+ "items": {
51
+ "$ref": "#/$defs/security-requirement"
52
+ }
53
+ },
54
+ "tags": {
55
+ "type": "array",
56
+ "items": {
57
+ "$ref": "#/$defs/tag"
58
+ }
59
+ },
60
+ "externalDocs": {
61
+ "$ref": "#/$defs/external-documentation"
62
+ }
63
+ },
64
+ "required": ["openapi", "info"],
65
+ "errorMessage": {
66
+ "anyOf": "The document must have either \"paths\", \"webhooks\" or \"components\""
67
+ },
68
+ "anyOf": [
69
+ {
70
+ "errorMessage": "The document must have either \"paths\", \"webhooks\" or \"components\"",
71
+ "required": ["paths"]
72
+ },
73
+ {
74
+ "errorMessage": "The document must have either \"paths\", \"webhooks\" or \"components\"",
75
+ "required": ["components"]
76
+ },
77
+ {
78
+ "errorMessage": "The document must have either \"paths\", \"webhooks\" or \"components\"",
79
+ "required": ["webhooks"]
80
+ }
81
+ ],
82
+ "$ref": "#/$defs/specification-extensions",
83
+ "unevaluatedProperties": false,
84
+ "$defs": {
85
+ "info": {
86
+ "$comment": "https://spec.openapis.org/oas/v3.2#info-object",
87
+ "type": "object",
88
+ "properties": {
89
+ "title": {
90
+ "type": "string"
91
+ },
92
+ "summary": {
93
+ "type": "string"
94
+ },
95
+ "description": {
96
+ "type": "string"
97
+ },
98
+ "termsOfService": {
99
+ "type": "string",
100
+ "format": "uri-reference"
101
+ },
102
+ "contact": {
103
+ "$ref": "#/$defs/contact"
104
+ },
105
+ "license": {
106
+ "$ref": "#/$defs/license"
107
+ },
108
+ "version": {
109
+ "type": "string"
110
+ }
111
+ },
112
+ "required": ["title", "version"],
113
+ "$ref": "#/$defs/specification-extensions",
114
+ "unevaluatedProperties": false
115
+ },
116
+ "contact": {
117
+ "$comment": "https://spec.openapis.org/oas/v3.2#contact-object",
118
+ "type": "object",
119
+ "properties": {
120
+ "name": {
121
+ "type": "string"
122
+ },
123
+ "url": {
124
+ "type": "string",
125
+ "format": "uri-reference"
126
+ },
127
+ "email": {
128
+ "type": "string",
129
+ "format": "email"
130
+ }
131
+ },
132
+ "$ref": "#/$defs/specification-extensions",
133
+ "unevaluatedProperties": false
134
+ },
135
+ "license": {
136
+ "$comment": "https://spec.openapis.org/oas/v3.2#license-object",
137
+ "type": "object",
138
+ "properties": {
139
+ "name": {
140
+ "type": "string"
141
+ },
142
+ "identifier": {
143
+ "type": "string"
144
+ },
145
+ "url": {
146
+ "type": "string",
147
+ "format": "uri-reference"
148
+ }
149
+ },
150
+ "required": ["name"],
151
+ "dependentSchemas": {
152
+ "identifier": {
153
+ "not": {
154
+ "required": ["url"]
155
+ }
156
+ }
157
+ },
158
+ "$ref": "#/$defs/specification-extensions",
159
+ "unevaluatedProperties": false
160
+ },
161
+ "server": {
162
+ "$comment": "https://spec.openapis.org/oas/v3.2#server-object",
163
+ "type": "object",
164
+ "properties": {
165
+ "url": {
166
+ "type": "string"
167
+ },
168
+ "description": {
169
+ "type": "string"
170
+ },
171
+ "name": {
172
+ "type": "string"
173
+ },
174
+ "variables": {
175
+ "type": "object",
176
+ "additionalProperties": {
177
+ "$ref": "#/$defs/server-variable"
178
+ }
179
+ }
180
+ },
181
+ "required": ["url"],
182
+ "$ref": "#/$defs/specification-extensions",
183
+ "unevaluatedProperties": false
184
+ },
185
+ "server-variable": {
186
+ "$comment": "https://spec.openapis.org/oas/v3.2#server-variable-object",
187
+ "type": "object",
188
+ "properties": {
189
+ "enum": {
190
+ "type": "array",
191
+ "items": {
192
+ "type": "string"
193
+ },
194
+ "minItems": 1
195
+ },
196
+ "default": {
197
+ "type": "string"
198
+ },
199
+ "description": {
200
+ "type": "string"
201
+ }
202
+ },
203
+ "required": ["default"],
204
+ "$ref": "#/$defs/specification-extensions",
205
+ "unevaluatedProperties": false
206
+ },
207
+ "components": {
208
+ "$comment": "https://spec.openapis.org/oas/v3.2#components-object",
209
+ "type": "object",
210
+ "properties": {
211
+ "schemas": {
212
+ "type": "object",
213
+ "additionalProperties": {
214
+ "$ref": "https://spec.openapis.org/oas/3.2/dialect/2025-09-17"
215
+ }
216
+ },
217
+ "responses": {
218
+ "type": "object",
219
+ "additionalProperties": {
220
+ "$ref": "#/$defs/response-or-reference"
221
+ }
222
+ },
223
+ "parameters": {
224
+ "type": "object",
225
+ "additionalProperties": {
226
+ "$ref": "#/$defs/parameter-or-reference"
227
+ }
228
+ },
229
+ "examples": {
230
+ "type": "object",
231
+ "additionalProperties": {
232
+ "$ref": "#/$defs/example-or-reference"
233
+ }
234
+ },
235
+ "requestBodies": {
236
+ "type": "object",
237
+ "additionalProperties": {
238
+ "$ref": "#/$defs/request-body-or-reference"
239
+ }
240
+ },
241
+ "headers": {
242
+ "type": "object",
243
+ "additionalProperties": {
244
+ "$ref": "#/$defs/header-or-reference"
245
+ }
246
+ },
247
+ "securitySchemes": {
248
+ "type": "object",
249
+ "additionalProperties": {
250
+ "$ref": "#/$defs/security-scheme-or-reference"
251
+ }
252
+ },
253
+ "links": {
254
+ "type": "object",
255
+ "additionalProperties": {
256
+ "$ref": "#/$defs/link-or-reference"
257
+ }
258
+ },
259
+ "callbacks": {
260
+ "type": "object",
261
+ "additionalProperties": {
262
+ "$ref": "#/$defs/callbacks-or-reference"
263
+ }
264
+ },
265
+ "pathItems": {
266
+ "type": "object",
267
+ "additionalProperties": {
268
+ "$ref": "#/$defs/path-item"
269
+ }
270
+ },
271
+ "mediaTypes": {
272
+ "type": "object",
273
+ "additionalProperties": {
274
+ "$ref": "#/$defs/media-type-or-reference"
275
+ }
276
+ }
277
+ },
278
+ "patternProperties": {
279
+ "^(?:schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems|mediaTypes)$": {
280
+ "$comment": "Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",
281
+ "propertyNames": {
282
+ "pattern": "^[a-zA-Z0-9._-]+$"
283
+ }
284
+ }
285
+ },
286
+ "$ref": "#/$defs/specification-extensions",
287
+ "unevaluatedProperties": false
288
+ },
289
+ "paths": {
290
+ "$comment": "https://spec.openapis.org/oas/v3.2#paths-object",
291
+ "type": "object",
292
+ "patternProperties": {
293
+ "^/": {
294
+ "$ref": "#/$defs/path-item"
295
+ }
296
+ },
297
+ "$ref": "#/$defs/specification-extensions",
298
+ "unevaluatedProperties": false
299
+ },
300
+ "path-item": {
301
+ "$comment": "https://spec.openapis.org/oas/v3.2#path-item-object",
302
+ "type": "object",
303
+ "properties": {
304
+ "$ref": {
305
+ "type": "string",
306
+ "format": "uri-reference"
307
+ },
308
+ "summary": {
309
+ "type": "string"
310
+ },
311
+ "description": {
312
+ "type": "string"
313
+ },
314
+ "servers": {
315
+ "type": "array",
316
+ "items": {
317
+ "$ref": "#/$defs/server"
318
+ }
319
+ },
320
+ "parameters": {
321
+ "$ref": "#/$defs/parameters"
322
+ },
323
+ "additionalOperations": {
324
+ "type": "object",
325
+ "additionalProperties": {
326
+ "$ref": "#/$defs/operation"
327
+ },
328
+ "propertyNames": {
329
+ "$comment": "RFC9110 restricts methods to \"1*tchar\" in ABNF",
330
+ "pattern": "^[a-zA-Z0-9!#$%&'*+.^_`|~-]+$",
331
+ "not": {
332
+ "enum": ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE", "QUERY"]
333
+ }
334
+ }
335
+ },
336
+ "get": {
337
+ "$ref": "#/$defs/operation"
338
+ },
339
+ "put": {
340
+ "$ref": "#/$defs/operation"
341
+ },
342
+ "post": {
343
+ "$ref": "#/$defs/operation"
344
+ },
345
+ "delete": {
346
+ "$ref": "#/$defs/operation"
347
+ },
348
+ "options": {
349
+ "$ref": "#/$defs/operation"
350
+ },
351
+ "head": {
352
+ "$ref": "#/$defs/operation"
353
+ },
354
+ "patch": {
355
+ "$ref": "#/$defs/operation"
356
+ },
357
+ "trace": {
358
+ "$ref": "#/$defs/operation"
359
+ },
360
+ "query": {
361
+ "$ref": "#/$defs/operation"
362
+ }
363
+ },
364
+ "$ref": "#/$defs/specification-extensions",
365
+ "unevaluatedProperties": false
366
+ },
367
+ "operation": {
368
+ "$comment": "https://spec.openapis.org/oas/v3.2#operation-object",
369
+ "type": "object",
370
+ "properties": {
371
+ "tags": {
372
+ "type": "array",
373
+ "items": {
374
+ "type": "string"
375
+ }
376
+ },
377
+ "summary": {
378
+ "type": "string"
379
+ },
380
+ "description": {
381
+ "type": "string"
382
+ },
383
+ "externalDocs": {
384
+ "$ref": "#/$defs/external-documentation"
385
+ },
386
+ "operationId": {
387
+ "type": "string"
388
+ },
389
+ "parameters": {
390
+ "$ref": "#/$defs/parameters"
391
+ },
392
+ "requestBody": {
393
+ "$ref": "#/$defs/request-body-or-reference"
394
+ },
395
+ "responses": {
396
+ "$ref": "#/$defs/responses"
397
+ },
398
+ "callbacks": {
399
+ "type": "object",
400
+ "additionalProperties": {
401
+ "$ref": "#/$defs/callbacks-or-reference"
402
+ }
403
+ },
404
+ "deprecated": {
405
+ "default": false,
406
+ "type": "boolean"
407
+ },
408
+ "security": {
409
+ "type": "array",
410
+ "items": {
411
+ "$ref": "#/$defs/security-requirement"
412
+ }
413
+ },
414
+ "servers": {
415
+ "type": "array",
416
+ "items": {
417
+ "$ref": "#/$defs/server"
418
+ }
419
+ }
420
+ },
421
+ "$ref": "#/$defs/specification-extensions",
422
+ "unevaluatedProperties": false
423
+ },
424
+ "external-documentation": {
425
+ "$comment": "https://spec.openapis.org/oas/v3.2#external-documentation-object",
426
+ "type": "object",
427
+ "properties": {
428
+ "description": {
429
+ "type": "string"
430
+ },
431
+ "url": {
432
+ "type": "string",
433
+ "format": "uri-reference"
434
+ }
435
+ },
436
+ "required": ["url"],
437
+ "$ref": "#/$defs/specification-extensions",
438
+ "unevaluatedProperties": false
439
+ },
440
+ "parameters": {
441
+ "type": "array",
442
+ "items": {
443
+ "$ref": "#/$defs/parameter-or-reference"
444
+ },
445
+ "not": {
446
+ "allOf": [
447
+ {
448
+ "contains": {
449
+ "type": "object",
450
+ "properties": {
451
+ "in": {
452
+ "const": "query"
453
+ }
454
+ },
455
+ "required": ["in"]
456
+ }
457
+ },
458
+ {
459
+ "contains": {
460
+ "type": "object",
461
+ "properties": {
462
+ "in": {
463
+ "const": "querystring"
464
+ }
465
+ },
466
+ "required": ["in"]
467
+ }
468
+ }
469
+ ]
470
+ },
471
+ "contains": {
472
+ "type": "object",
473
+ "properties": {
474
+ "in": {
475
+ "const": "querystring"
476
+ }
477
+ },
478
+ "required": ["in"]
479
+ },
480
+ "minContains": 0,
481
+ "maxContains": 1
482
+ },
483
+ "parameter": {
484
+ "$comment": "https://spec.openapis.org/oas/v3.2#parameter-object",
485
+ "type": "object",
486
+ "properties": {
487
+ "name": {
488
+ "type": "string"
489
+ },
490
+ "in": {
491
+ "enum": ["query", "querystring", "header", "path", "cookie"]
492
+ },
493
+ "description": {
494
+ "type": "string"
495
+ },
496
+ "required": {
497
+ "default": false,
498
+ "type": "boolean"
499
+ },
500
+ "deprecated": {
501
+ "default": false,
502
+ "type": "boolean"
503
+ },
504
+ "schema": {
505
+ "$ref": "https://spec.openapis.org/oas/3.2/dialect/2025-09-17"
506
+ },
507
+ "content": {
508
+ "$ref": "#/$defs/content",
509
+ "minProperties": 1,
510
+ "maxProperties": 1
511
+ }
512
+ },
513
+ "required": ["name", "in"],
514
+ "oneOf": [
515
+ {
516
+ "required": ["schema"]
517
+ },
518
+ {
519
+ "required": ["content"]
520
+ }
521
+ ],
522
+ "allOf": [
523
+ {
524
+ "$ref": "#/$defs/examples"
525
+ },
526
+ {
527
+ "$ref": "#/$defs/specification-extensions"
528
+ },
529
+ {
530
+ "if": {
531
+ "properties": {
532
+ "in": {
533
+ "const": "query"
534
+ }
535
+ }
536
+ },
537
+ "then": {
538
+ "properties": {
539
+ "allowEmptyValue": {
540
+ "default": false,
541
+ "type": "boolean"
542
+ }
543
+ }
544
+ }
545
+ },
546
+ {
547
+ "if": {
548
+ "properties": {
549
+ "in": {
550
+ "const": "querystring"
551
+ }
552
+ }
553
+ },
554
+ "then": {
555
+ "required": ["content"]
556
+ }
557
+ }
558
+ ],
559
+ "dependentSchemas": {
560
+ "schema": {
561
+ "properties": {
562
+ "style": {
563
+ "type": "string"
564
+ },
565
+ "explode": {
566
+ "type": "boolean"
567
+ }
568
+ },
569
+ "allOf": [
570
+ {
571
+ "$ref": "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"
572
+ },
573
+ {
574
+ "$ref": "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"
575
+ },
576
+ {
577
+ "$ref": "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"
578
+ },
579
+ {
580
+ "$ref": "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"
581
+ }
582
+ ],
583
+ "$defs": {
584
+ "styles-for-path": {
585
+ "if": {
586
+ "properties": {
587
+ "in": {
588
+ "const": "path"
589
+ }
590
+ }
591
+ },
592
+ "then": {
593
+ "properties": {
594
+ "name": {
595
+ "pattern": "^[^{}]+$"
596
+ },
597
+ "style": {
598
+ "default": "simple",
599
+ "enum": ["matrix", "label", "simple"]
600
+ },
601
+ "required": {
602
+ "const": true
603
+ },
604
+ "explode": {
605
+ "default": false
606
+ },
607
+ "allowReserved": {
608
+ "type": "boolean",
609
+ "default": false
610
+ }
611
+ },
612
+ "required": ["required"]
613
+ }
614
+ },
615
+ "styles-for-header": {
616
+ "if": {
617
+ "properties": {
618
+ "in": {
619
+ "const": "header"
620
+ }
621
+ }
622
+ },
623
+ "then": {
624
+ "properties": {
625
+ "style": {
626
+ "default": "simple",
627
+ "const": "simple"
628
+ },
629
+ "explode": {
630
+ "default": false
631
+ }
632
+ }
633
+ }
634
+ },
635
+ "styles-for-query": {
636
+ "if": {
637
+ "properties": {
638
+ "in": {
639
+ "const": "query"
640
+ }
641
+ }
642
+ },
643
+ "then": {
644
+ "properties": {
645
+ "style": {
646
+ "default": "form",
647
+ "enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject"]
648
+ },
649
+ "allowReserved": {
650
+ "type": "boolean",
651
+ "default": false
652
+ }
653
+ },
654
+ "$ref": "#/$defs/explode-for-form"
655
+ }
656
+ },
657
+ "styles-for-cookie": {
658
+ "if": {
659
+ "properties": {
660
+ "in": {
661
+ "const": "cookie"
662
+ }
663
+ }
664
+ },
665
+ "then": {
666
+ "properties": {
667
+ "style": {
668
+ "default": "form",
669
+ "enum": ["form", "cookie"]
670
+ },
671
+ "explode": {
672
+ "default": true
673
+ }
674
+ },
675
+ "if": {
676
+ "properties": {
677
+ "style": {
678
+ "const": "form"
679
+ }
680
+ }
681
+ },
682
+ "then": {
683
+ "properties": {
684
+ "allowReserved": {
685
+ "type": "boolean",
686
+ "default": false
687
+ }
688
+ }
689
+ }
690
+ }
691
+ }
692
+ }
693
+ }
694
+ },
695
+ "unevaluatedProperties": false
696
+ },
697
+ "parameter-or-reference": {
698
+ "if": {
699
+ "type": "object",
700
+ "required": ["$ref"]
701
+ },
702
+ "then": {
703
+ "$ref": "#/$defs/reference"
704
+ },
705
+ "else": {
706
+ "$ref": "#/$defs/parameter"
707
+ }
708
+ },
709
+ "request-body": {
710
+ "$comment": "https://spec.openapis.org/oas/v3.2#request-body-object",
711
+ "type": "object",
712
+ "properties": {
713
+ "description": {
714
+ "type": "string"
715
+ },
716
+ "content": {
717
+ "$ref": "#/$defs/content"
718
+ },
719
+ "required": {
720
+ "default": false,
721
+ "type": "boolean"
722
+ }
723
+ },
724
+ "required": ["content"],
725
+ "$ref": "#/$defs/specification-extensions",
726
+ "unevaluatedProperties": false
727
+ },
728
+ "request-body-or-reference": {
729
+ "if": {
730
+ "type": "object",
731
+ "required": ["$ref"]
732
+ },
733
+ "then": {
734
+ "$ref": "#/$defs/reference"
735
+ },
736
+ "else": {
737
+ "$ref": "#/$defs/request-body"
738
+ }
739
+ },
740
+ "content": {
741
+ "$comment": "https://spec.openapis.org/oas/v3.2#fixed-fields-10",
742
+ "type": "object",
743
+ "additionalProperties": {
744
+ "$ref": "#/$defs/media-type-or-reference"
745
+ },
746
+ "propertyNames": {
747
+ "format": "media-range"
748
+ }
749
+ },
750
+ "media-type": {
751
+ "$comment": "https://spec.openapis.org/oas/v3.2#media-type-object",
752
+ "type": "object",
753
+ "properties": {
754
+ "description": {
755
+ "type": "string"
756
+ },
757
+ "schema": {
758
+ "$ref": "https://spec.openapis.org/oas/3.2/dialect/2025-09-17"
759
+ },
760
+ "itemSchema": {
761
+ "$ref": "https://spec.openapis.org/oas/3.2/dialect/2025-09-17"
762
+ },
763
+ "encoding": {
764
+ "type": "object",
765
+ "additionalProperties": {
766
+ "$ref": "#/$defs/encoding"
767
+ }
768
+ },
769
+ "prefixEncoding": {
770
+ "type": "array",
771
+ "items": {
772
+ "$ref": "#/$defs/encoding"
773
+ }
774
+ },
775
+ "itemEncoding": {
776
+ "$ref": "#/$defs/encoding"
777
+ }
778
+ },
779
+ "dependentSchemas": {
780
+ "encoding": {
781
+ "properties": {
782
+ "prefixEncoding": false,
783
+ "itemEncoding": false
784
+ }
785
+ }
786
+ },
787
+ "allOf": [
788
+ {
789
+ "$ref": "#/$defs/examples"
790
+ },
791
+ {
792
+ "$ref": "#/$defs/specification-extensions"
793
+ }
794
+ ],
795
+ "unevaluatedProperties": false
796
+ },
797
+ "media-type-or-reference": {
798
+ "if": {
799
+ "type": "object",
800
+ "required": ["$ref"]
801
+ },
802
+ "then": {
803
+ "$ref": "#/$defs/reference"
804
+ },
805
+ "else": {
806
+ "$ref": "#/$defs/media-type"
807
+ }
808
+ },
809
+ "encoding": {
810
+ "$comment": "https://spec.openapis.org/oas/v3.2#encoding-object",
811
+ "type": "object",
812
+ "properties": {
813
+ "contentType": {
814
+ "type": "string",
815
+ "format": "media-range"
816
+ },
817
+ "headers": {
818
+ "type": "object",
819
+ "additionalProperties": {
820
+ "$ref": "#/$defs/header-or-reference"
821
+ }
822
+ },
823
+ "style": {
824
+ "enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject"]
825
+ },
826
+ "explode": {
827
+ "type": "boolean"
828
+ },
829
+ "allowReserved": {
830
+ "type": "boolean"
831
+ },
832
+ "encoding": {
833
+ "type": "object",
834
+ "additionalProperties": {
835
+ "$ref": "#/$defs/encoding"
836
+ }
837
+ },
838
+ "prefixEncoding": {
839
+ "type": "array",
840
+ "items": {
841
+ "$ref": "#/$defs/encoding"
842
+ }
843
+ },
844
+ "itemEncoding": {
845
+ "$ref": "#/$defs/encoding"
846
+ }
847
+ },
848
+ "dependentSchemas": {
849
+ "encoding": {
850
+ "properties": {
851
+ "prefixEncoding": false,
852
+ "itemEncoding": false
853
+ }
854
+ },
855
+ "style": {
856
+ "properties": {
857
+ "allowReserved": {
858
+ "default": false
859
+ }
860
+ },
861
+ "$ref": "#/$defs/explode-for-form"
862
+ },
863
+ "explode": {
864
+ "properties": {
865
+ "style": {
866
+ "default": "form"
867
+ },
868
+ "allowReserved": {
869
+ "default": false
870
+ }
871
+ }
872
+ },
873
+ "allowReserved": {
874
+ "properties": {
875
+ "style": {
876
+ "default": "form"
877
+ }
878
+ },
879
+ "$ref": "#/$defs/explode-for-form"
880
+ }
881
+ },
882
+ "$ref": "#/$defs/specification-extensions",
883
+ "unevaluatedProperties": false
884
+ },
885
+ "responses": {
886
+ "$comment": "https://spec.openapis.org/oas/v3.2#responses-object",
887
+ "type": "object",
888
+ "properties": {
889
+ "default": {
890
+ "$ref": "#/$defs/response-or-reference"
891
+ }
892
+ },
893
+ "patternProperties": {
894
+ "^[1-5](?:[0-9]{2}|XX)$": {
895
+ "$ref": "#/$defs/response-or-reference"
896
+ }
897
+ },
898
+ "minProperties": 1,
899
+ "$ref": "#/$defs/specification-extensions",
900
+ "unevaluatedProperties": false,
901
+ "if": {
902
+ "$comment": "either default, or at least one response code property must exist",
903
+ "patternProperties": {
904
+ "^[1-5](?:[0-9]{2}|XX)$": false
905
+ }
906
+ },
907
+ "then": {
908
+ "required": ["default"]
909
+ }
910
+ },
911
+ "response": {
912
+ "$comment": "https://spec.openapis.org/oas/v3.2#response-object",
913
+ "type": "object",
914
+ "properties": {
915
+ "summary": {
916
+ "type": "string"
917
+ },
918
+ "description": {
919
+ "type": "string"
920
+ },
921
+ "headers": {
922
+ "type": "object",
923
+ "additionalProperties": {
924
+ "$ref": "#/$defs/header-or-reference"
925
+ }
926
+ },
927
+ "content": {
928
+ "$ref": "#/$defs/content"
929
+ },
930
+ "links": {
931
+ "type": "object",
932
+ "additionalProperties": {
933
+ "$ref": "#/$defs/link-or-reference"
934
+ }
935
+ }
936
+ },
937
+ "$ref": "#/$defs/specification-extensions",
938
+ "unevaluatedProperties": false
939
+ },
940
+ "response-or-reference": {
941
+ "if": {
942
+ "type": "object",
943
+ "required": ["$ref"]
944
+ },
945
+ "then": {
946
+ "$ref": "#/$defs/reference"
947
+ },
948
+ "else": {
949
+ "$ref": "#/$defs/response"
950
+ }
951
+ },
952
+ "callbacks": {
953
+ "$comment": "https://spec.openapis.org/oas/v3.2#callback-object",
954
+ "type": "object",
955
+ "$ref": "#/$defs/specification-extensions",
956
+ "additionalProperties": {
957
+ "$ref": "#/$defs/path-item"
958
+ }
959
+ },
960
+ "callbacks-or-reference": {
961
+ "if": {
962
+ "type": "object",
963
+ "required": ["$ref"]
964
+ },
965
+ "then": {
966
+ "$ref": "#/$defs/reference"
967
+ },
968
+ "else": {
969
+ "$ref": "#/$defs/callbacks"
970
+ }
971
+ },
972
+ "example": {
973
+ "$comment": "https://spec.openapis.org/oas/v3.2#example-object",
974
+ "type": "object",
975
+ "properties": {
976
+ "summary": {
977
+ "type": "string"
978
+ },
979
+ "description": {
980
+ "type": "string"
981
+ },
982
+ "dataValue": true,
983
+ "serializedValue": {
984
+ "type": "string"
985
+ },
986
+ "value": true,
987
+ "externalValue": {
988
+ "type": "string",
989
+ "format": "uri-reference"
990
+ }
991
+ },
992
+ "allOf": [
993
+ {
994
+ "not": {
995
+ "required": ["value", "externalValue"]
996
+ }
997
+ },
998
+ {
999
+ "not": {
1000
+ "required": ["value", "dataValue"]
1001
+ }
1002
+ },
1003
+ {
1004
+ "not": {
1005
+ "required": ["value", "serializedValue"]
1006
+ }
1007
+ },
1008
+ {
1009
+ "not": {
1010
+ "required": ["serializedValue", "externalValue"]
1011
+ }
1012
+ }
1013
+ ],
1014
+ "$ref": "#/$defs/specification-extensions",
1015
+ "unevaluatedProperties": false
1016
+ },
1017
+ "example-or-reference": {
1018
+ "if": {
1019
+ "type": "object",
1020
+ "required": ["$ref"]
1021
+ },
1022
+ "then": {
1023
+ "$ref": "#/$defs/reference"
1024
+ },
1025
+ "else": {
1026
+ "$ref": "#/$defs/example"
1027
+ }
1028
+ },
1029
+ "link": {
1030
+ "$comment": "https://spec.openapis.org/oas/v3.2#link-object",
1031
+ "type": "object",
1032
+ "properties": {
1033
+ "operationRef": {
1034
+ "type": "string",
1035
+ "format": "uri-reference"
1036
+ },
1037
+ "operationId": {
1038
+ "type": "string"
1039
+ },
1040
+ "parameters": {
1041
+ "$ref": "#/$defs/map-of-strings"
1042
+ },
1043
+ "requestBody": true,
1044
+ "description": {
1045
+ "type": "string"
1046
+ },
1047
+ "server": {
1048
+ "$ref": "#/$defs/server"
1049
+ }
1050
+ },
1051
+ "oneOf": [
1052
+ {
1053
+ "required": ["operationRef"]
1054
+ },
1055
+ {
1056
+ "required": ["operationId"]
1057
+ }
1058
+ ],
1059
+ "$ref": "#/$defs/specification-extensions",
1060
+ "unevaluatedProperties": false
1061
+ },
1062
+ "link-or-reference": {
1063
+ "if": {
1064
+ "type": "object",
1065
+ "required": ["$ref"]
1066
+ },
1067
+ "then": {
1068
+ "$ref": "#/$defs/reference"
1069
+ },
1070
+ "else": {
1071
+ "$ref": "#/$defs/link"
1072
+ }
1073
+ },
1074
+ "header": {
1075
+ "$comment": "https://spec.openapis.org/oas/v3.2#header-object",
1076
+ "type": "object",
1077
+ "properties": {
1078
+ "description": {
1079
+ "type": "string"
1080
+ },
1081
+ "required": {
1082
+ "default": false,
1083
+ "type": "boolean"
1084
+ },
1085
+ "deprecated": {
1086
+ "default": false,
1087
+ "type": "boolean"
1088
+ },
1089
+ "schema": {
1090
+ "$ref": "https://spec.openapis.org/oas/3.2/dialect/2025-09-17"
1091
+ },
1092
+ "content": {
1093
+ "$ref": "#/$defs/content",
1094
+ "minProperties": 1,
1095
+ "maxProperties": 1
1096
+ }
1097
+ },
1098
+ "oneOf": [
1099
+ {
1100
+ "required": ["schema"]
1101
+ },
1102
+ {
1103
+ "required": ["content"]
1104
+ }
1105
+ ],
1106
+ "dependentSchemas": {
1107
+ "schema": {
1108
+ "properties": {
1109
+ "style": {
1110
+ "default": "simple",
1111
+ "const": "simple"
1112
+ },
1113
+ "explode": {
1114
+ "default": false,
1115
+ "type": "boolean"
1116
+ }
1117
+ }
1118
+ }
1119
+ },
1120
+ "allOf": [
1121
+ {
1122
+ "$ref": "#/$defs/examples"
1123
+ },
1124
+ {
1125
+ "$ref": "#/$defs/specification-extensions"
1126
+ }
1127
+ ],
1128
+ "unevaluatedProperties": false
1129
+ },
1130
+ "header-or-reference": {
1131
+ "if": {
1132
+ "type": "object",
1133
+ "required": ["$ref"]
1134
+ },
1135
+ "then": {
1136
+ "$ref": "#/$defs/reference"
1137
+ },
1138
+ "else": {
1139
+ "$ref": "#/$defs/header"
1140
+ }
1141
+ },
1142
+ "tag": {
1143
+ "$comment": "https://spec.openapis.org/oas/v3.2#tag-object",
1144
+ "type": "object",
1145
+ "properties": {
1146
+ "name": {
1147
+ "type": "string"
1148
+ },
1149
+ "summary": {
1150
+ "type": "string"
1151
+ },
1152
+ "description": {
1153
+ "type": "string"
1154
+ },
1155
+ "externalDocs": {
1156
+ "$ref": "#/$defs/external-documentation"
1157
+ },
1158
+ "parent": {
1159
+ "type": "string"
1160
+ },
1161
+ "kind": {
1162
+ "type": "string"
1163
+ }
1164
+ },
1165
+ "required": ["name"],
1166
+ "$ref": "#/$defs/specification-extensions",
1167
+ "unevaluatedProperties": false
1168
+ },
1169
+ "reference": {
1170
+ "$comment": "https://spec.openapis.org/oas/v3.2#reference-object",
1171
+ "type": "object",
1172
+ "properties": {
1173
+ "$ref": {
1174
+ "type": "string",
1175
+ "format": "uri-reference"
1176
+ },
1177
+ "summary": {
1178
+ "type": "string"
1179
+ },
1180
+ "description": {
1181
+ "type": "string"
1182
+ }
1183
+ }
1184
+ },
1185
+ "schema": {
1186
+ "$comment": "https://spec.openapis.org/oas/v3.2#schema-object",
1187
+ "$dynamicAnchor": "meta",
1188
+ "type": ["object", "boolean"]
1189
+ },
1190
+ "security-scheme": {
1191
+ "$comment": "https://spec.openapis.org/oas/v3.2#security-scheme-object",
1192
+ "type": "object",
1193
+ "properties": {
1194
+ "type": {
1195
+ "enum": ["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]
1196
+ },
1197
+ "description": {
1198
+ "type": "string"
1199
+ },
1200
+ "deprecated": {
1201
+ "default": false,
1202
+ "type": "boolean"
1203
+ }
1204
+ },
1205
+ "required": ["type"],
1206
+ "allOf": [
1207
+ {
1208
+ "$ref": "#/$defs/specification-extensions"
1209
+ },
1210
+ {
1211
+ "$ref": "#/$defs/security-scheme/$defs/type-apikey"
1212
+ },
1213
+ {
1214
+ "$ref": "#/$defs/security-scheme/$defs/type-http"
1215
+ },
1216
+ {
1217
+ "$ref": "#/$defs/security-scheme/$defs/type-http-bearer"
1218
+ },
1219
+ {
1220
+ "$ref": "#/$defs/security-scheme/$defs/type-oauth2"
1221
+ },
1222
+ {
1223
+ "$ref": "#/$defs/security-scheme/$defs/type-oidc"
1224
+ }
1225
+ ],
1226
+ "unevaluatedProperties": false,
1227
+ "$defs": {
1228
+ "type-apikey": {
1229
+ "if": {
1230
+ "properties": {
1231
+ "type": {
1232
+ "const": "apiKey"
1233
+ }
1234
+ }
1235
+ },
1236
+ "then": {
1237
+ "properties": {
1238
+ "name": {
1239
+ "type": "string"
1240
+ },
1241
+ "in": {
1242
+ "enum": ["query", "header", "cookie"]
1243
+ }
1244
+ },
1245
+ "required": ["name", "in"]
1246
+ }
1247
+ },
1248
+ "type-http": {
1249
+ "if": {
1250
+ "properties": {
1251
+ "type": {
1252
+ "const": "http"
1253
+ }
1254
+ }
1255
+ },
1256
+ "then": {
1257
+ "properties": {
1258
+ "scheme": {
1259
+ "type": "string"
1260
+ }
1261
+ },
1262
+ "required": ["scheme"]
1263
+ }
1264
+ },
1265
+ "type-http-bearer": {
1266
+ "if": {
1267
+ "properties": {
1268
+ "type": {
1269
+ "const": "http"
1270
+ },
1271
+ "scheme": {
1272
+ "type": "string",
1273
+ "pattern": "^[Bb][Ee][Aa][Rr][Ee][Rr]$"
1274
+ }
1275
+ },
1276
+ "required": ["type", "scheme"]
1277
+ },
1278
+ "then": {
1279
+ "properties": {
1280
+ "bearerFormat": {
1281
+ "type": "string"
1282
+ }
1283
+ }
1284
+ }
1285
+ },
1286
+ "type-oauth2": {
1287
+ "if": {
1288
+ "properties": {
1289
+ "type": {
1290
+ "const": "oauth2"
1291
+ }
1292
+ }
1293
+ },
1294
+ "then": {
1295
+ "properties": {
1296
+ "flows": {
1297
+ "$ref": "#/$defs/oauth-flows"
1298
+ },
1299
+ "oauth2MetadataUrl": {
1300
+ "type": "string",
1301
+ "format": "uri-reference"
1302
+ }
1303
+ },
1304
+ "required": ["flows"]
1305
+ }
1306
+ },
1307
+ "type-oidc": {
1308
+ "if": {
1309
+ "properties": {
1310
+ "type": {
1311
+ "const": "openIdConnect"
1312
+ }
1313
+ }
1314
+ },
1315
+ "then": {
1316
+ "properties": {
1317
+ "openIdConnectUrl": {
1318
+ "type": "string",
1319
+ "format": "uri-reference"
1320
+ }
1321
+ },
1322
+ "required": ["openIdConnectUrl"]
1323
+ }
1324
+ }
1325
+ }
1326
+ },
1327
+ "security-scheme-or-reference": {
1328
+ "if": {
1329
+ "type": "object",
1330
+ "required": ["$ref"]
1331
+ },
1332
+ "then": {
1333
+ "$ref": "#/$defs/reference"
1334
+ },
1335
+ "else": {
1336
+ "$ref": "#/$defs/security-scheme"
1337
+ }
1338
+ },
1339
+ "oauth-flows": {
1340
+ "type": "object",
1341
+ "properties": {
1342
+ "implicit": {
1343
+ "$ref": "#/$defs/oauth-flows/$defs/implicit"
1344
+ },
1345
+ "password": {
1346
+ "$ref": "#/$defs/oauth-flows/$defs/password"
1347
+ },
1348
+ "clientCredentials": {
1349
+ "$ref": "#/$defs/oauth-flows/$defs/client-credentials"
1350
+ },
1351
+ "authorizationCode": {
1352
+ "$ref": "#/$defs/oauth-flows/$defs/authorization-code"
1353
+ },
1354
+ "deviceAuthorization": {
1355
+ "$ref": "#/$defs/oauth-flows/$defs/device-authorization"
1356
+ }
1357
+ },
1358
+ "$ref": "#/$defs/specification-extensions",
1359
+ "unevaluatedProperties": false,
1360
+ "$defs": {
1361
+ "implicit": {
1362
+ "type": "object",
1363
+ "properties": {
1364
+ "authorizationUrl": {
1365
+ "type": "string",
1366
+ "format": "uri-reference"
1367
+ },
1368
+ "refreshUrl": {
1369
+ "type": "string",
1370
+ "format": "uri-reference"
1371
+ },
1372
+ "scopes": {
1373
+ "$ref": "#/$defs/map-of-strings"
1374
+ }
1375
+ },
1376
+ "required": ["authorizationUrl", "scopes"],
1377
+ "$ref": "#/$defs/specification-extensions",
1378
+ "unevaluatedProperties": false
1379
+ },
1380
+ "password": {
1381
+ "type": "object",
1382
+ "properties": {
1383
+ "tokenUrl": {
1384
+ "type": "string",
1385
+ "format": "uri-reference"
1386
+ },
1387
+ "refreshUrl": {
1388
+ "type": "string",
1389
+ "format": "uri-reference"
1390
+ },
1391
+ "scopes": {
1392
+ "$ref": "#/$defs/map-of-strings"
1393
+ }
1394
+ },
1395
+ "required": ["tokenUrl", "scopes"],
1396
+ "$ref": "#/$defs/specification-extensions",
1397
+ "unevaluatedProperties": false
1398
+ },
1399
+ "client-credentials": {
1400
+ "type": "object",
1401
+ "properties": {
1402
+ "tokenUrl": {
1403
+ "type": "string",
1404
+ "format": "uri-reference"
1405
+ },
1406
+ "refreshUrl": {
1407
+ "type": "string",
1408
+ "format": "uri-reference"
1409
+ },
1410
+ "scopes": {
1411
+ "$ref": "#/$defs/map-of-strings"
1412
+ }
1413
+ },
1414
+ "required": ["tokenUrl", "scopes"],
1415
+ "$ref": "#/$defs/specification-extensions",
1416
+ "unevaluatedProperties": false
1417
+ },
1418
+ "authorization-code": {
1419
+ "type": "object",
1420
+ "properties": {
1421
+ "authorizationUrl": {
1422
+ "type": "string",
1423
+ "format": "uri-reference"
1424
+ },
1425
+ "tokenUrl": {
1426
+ "type": "string",
1427
+ "format": "uri-reference"
1428
+ },
1429
+ "refreshUrl": {
1430
+ "type": "string",
1431
+ "format": "uri-reference"
1432
+ },
1433
+ "scopes": {
1434
+ "$ref": "#/$defs/map-of-strings"
1435
+ }
1436
+ },
1437
+ "required": ["authorizationUrl", "tokenUrl", "scopes"],
1438
+ "$ref": "#/$defs/specification-extensions",
1439
+ "unevaluatedProperties": false
1440
+ },
1441
+ "device-authorization": {
1442
+ "type": "object",
1443
+ "properties": {
1444
+ "deviceAuthorizationUrl": {
1445
+ "type": "string",
1446
+ "format": "uri-reference"
1447
+ },
1448
+ "tokenUrl": {
1449
+ "type": "string",
1450
+ "format": "uri-reference"
1451
+ },
1452
+ "refreshUrl": {
1453
+ "type": "string",
1454
+ "format": "uri-reference"
1455
+ },
1456
+ "scopes": {
1457
+ "$ref": "#/$defs/map-of-strings"
1458
+ }
1459
+ },
1460
+ "required": ["deviceAuthorizationUrl", "tokenUrl", "scopes"],
1461
+ "$ref": "#/$defs/specification-extensions",
1462
+ "unevaluatedProperties": false
1463
+ }
1464
+ }
1465
+ },
1466
+ "security-requirement": {
1467
+ "$comment": "https://spec.openapis.org/oas/v3.2#security-requirement-object",
1468
+ "type": "object",
1469
+ "additionalProperties": {
1470
+ "type": "array",
1471
+ "items": {
1472
+ "type": "string"
1473
+ }
1474
+ }
1475
+ },
1476
+ "specification-extensions": {
1477
+ "$comment": "https://spec.openapis.org/oas/v3.2#specification-extensions",
1478
+ "patternProperties": {
1479
+ "^x-": true
1480
+ }
1481
+ },
1482
+ "examples": {
1483
+ "properties": {
1484
+ "example": true,
1485
+ "examples": {
1486
+ "type": "object",
1487
+ "additionalProperties": {
1488
+ "$ref": "#/$defs/example-or-reference"
1489
+ }
1490
+ }
1491
+ },
1492
+ "not": {
1493
+ "required": ["example", "examples"]
1494
+ }
1495
+ },
1496
+ "map-of-strings": {
1497
+ "type": "object",
1498
+ "additionalProperties": {
1499
+ "type": "string"
1500
+ }
1501
+ },
1502
+ "explode-for-form": {
1503
+ "$comment": "for encoding objects, and query and cookie parameters, style=form is the default",
1504
+ "if": {
1505
+ "properties": {
1506
+ "style": {
1507
+ "const": "form"
1508
+ }
1509
+ }
1510
+ },
1511
+ "then": {
1512
+ "properties": {
1513
+ "explode": {
1514
+ "default": true
1515
+ }
1516
+ }
1517
+ },
1518
+ "else": {
1519
+ "properties": {
1520
+ "explode": {
1521
+ "default": false
1522
+ }
1523
+ }
1524
+ }
1525
+ }
1526
+ }
1527
+ }