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