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