@scalar/openapi-parser 0.22.3 → 0.23.1

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