@scalar/oas-utils 0.4.18 → 0.4.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/entities/spec/request-examples.d.ts +55 -55
  3. package/dist/entities/spec/request-examples.d.ts.map +1 -1
  4. package/dist/entities/spec/request-examples.js.map +2 -2
  5. package/dist/helpers/index.d.ts +1 -0
  6. package/dist/helpers/index.d.ts.map +1 -1
  7. package/dist/helpers/index.js +2 -0
  8. package/dist/helpers/index.js.map +2 -2
  9. package/dist/helpers/operation-to-har/operation-to-har.d.ts +1 -2
  10. package/dist/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  11. package/dist/helpers/operation-to-har/operation-to-har.js +4 -3
  12. package/dist/helpers/operation-to-har/operation-to-har.js.map +2 -2
  13. package/dist/helpers/operation-to-har/process-body.d.ts +5 -2
  14. package/dist/helpers/operation-to-har/process-body.d.ts.map +1 -1
  15. package/dist/helpers/operation-to-har/process-body.js +4 -5
  16. package/dist/helpers/operation-to-har/process-body.js.map +2 -2
  17. package/dist/helpers/operation-to-har/process-parameters.d.ts +2 -4
  18. package/dist/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  19. package/dist/helpers/operation-to-har/process-parameters.js +3 -8
  20. package/dist/helpers/operation-to-har/process-parameters.js.map +2 -2
  21. package/dist/helpers/operation-to-har/process-security-schemes.js +1 -1
  22. package/dist/helpers/operation-to-har/process-security-schemes.js.map +2 -2
  23. package/dist/helpers/servers.d.ts +24 -0
  24. package/dist/helpers/servers.d.ts.map +1 -0
  25. package/dist/helpers/servers.js +97 -0
  26. package/dist/helpers/servers.js.map +7 -0
  27. package/dist/spec-getters/get-example-from-schema.d.ts +3 -2
  28. package/dist/spec-getters/get-example-from-schema.d.ts.map +1 -1
  29. package/dist/spec-getters/get-example-from-schema.js +55 -39
  30. package/dist/spec-getters/get-example-from-schema.js.map +2 -2
  31. package/dist/spec-getters/get-parameters-from-operation.d.ts.map +1 -1
  32. package/dist/spec-getters/get-parameters-from-operation.js +4 -1
  33. package/dist/spec-getters/get-parameters-from-operation.js.map +2 -2
  34. package/dist/spec-getters/get-request-body-from-operation.d.ts.map +1 -1
  35. package/dist/spec-getters/get-request-body-from-operation.js +5 -4
  36. package/dist/spec-getters/get-request-body-from-operation.js.map +2 -2
  37. package/dist/transforms/import-spec.d.ts +0 -4
  38. package/dist/transforms/import-spec.d.ts.map +1 -1
  39. package/dist/transforms/import-spec.js +2 -69
  40. package/dist/transforms/import-spec.js.map +2 -2
  41. package/dist/transforms/index.d.ts +1 -1
  42. package/dist/transforms/index.d.ts.map +1 -1
  43. package/dist/transforms/index.js +0 -2
  44. package/dist/transforms/index.js.map +2 -2
  45. package/package.json +10 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.4.21
4
+
5
+ ### Patch Changes
6
+
7
+ - e2272a1: fix(oas-utils): use const value as example
8
+ - b6f4b60: fix: skip readOnly properties in request examples
9
+ - Updated dependencies [b8776fc]
10
+ - @scalar/workspace-store@0.14.1
11
+
12
+ ## 0.4.20
13
+
14
+ ### Patch Changes
15
+
16
+ - bbef120: fix: remove extra coerces and cleanUp plugin from bundler
17
+ - a1429ca: chore: move to new extensions system for better type safety
18
+ - 66b18fc: feat: update the references to handle $refs from the magic proxy
19
+ - 5f022b5: feat: use registry.scalar.com URLs as example
20
+ - Updated dependencies [bbef120]
21
+ - Updated dependencies [b93e1fe]
22
+ - Updated dependencies [a1429ca]
23
+ - Updated dependencies [5208f06]
24
+ - Updated dependencies [4d509fb]
25
+ - Updated dependencies [66b18fc]
26
+ - Updated dependencies [0fcd446]
27
+ - Updated dependencies [6c24be9]
28
+ - Updated dependencies [6a88108]
29
+ - Updated dependencies [c838a3f]
30
+ - Updated dependencies [9be6eec]
31
+ - Updated dependencies [c4bf497]
32
+ - Updated dependencies [d8adbed]
33
+ - Updated dependencies [0c80ef0]
34
+ - @scalar/workspace-store@0.14.0
35
+ - @scalar/json-magic@0.3.0
36
+ - @scalar/helpers@0.0.8
37
+ - @scalar/themes@0.13.13
38
+ - @scalar/types@0.2.12
39
+ - @scalar/object-utils@1.2.4
40
+ - @scalar/openapi-types@0.3.7
41
+
42
+ ## 0.4.19
43
+
44
+ ### Patch Changes
45
+
46
+ - 3de82ac: fix: uses document url even if it's relative
47
+ - Updated dependencies [0d502cb]
48
+ - Updated dependencies [0afc40c]
49
+ - Updated dependencies [128af48]
50
+ - @scalar/workspace-store@0.13.0
51
+ - @scalar/helpers@0.0.7
52
+ - @scalar/object-utils@1.2.3
53
+ - @scalar/openapi-types@0.3.7
54
+ - @scalar/themes@0.13.12
55
+ - @scalar/types@0.2.11
56
+
3
57
  ## 0.4.18
4
58
 
5
59
  ### Patch Changes
@@ -36,8 +36,8 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
36
36
  enum?: string[] | undefined;
37
37
  examples?: any[] | undefined;
38
38
  format?: string | undefined;
39
- file?: any;
40
39
  nullable?: boolean | undefined;
40
+ file?: any;
41
41
  }, {
42
42
  value?: string | undefined;
43
43
  minimum?: number | undefined;
@@ -50,9 +50,9 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
50
50
  key?: string | undefined;
51
51
  examples?: any[] | undefined;
52
52
  format?: string | undefined;
53
+ nullable?: boolean | undefined;
53
54
  file?: any;
54
55
  enabled?: boolean | undefined;
55
- nullable?: boolean | undefined;
56
56
  }>, {
57
57
  value: string;
58
58
  key: string;
@@ -66,8 +66,8 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
66
66
  enum?: string[] | undefined;
67
67
  examples?: any[] | undefined;
68
68
  format?: string | undefined;
69
- file?: any;
70
69
  nullable?: boolean | undefined;
70
+ file?: any;
71
71
  }, {
72
72
  value?: string | undefined;
73
73
  minimum?: number | undefined;
@@ -80,9 +80,9 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
80
80
  key?: string | undefined;
81
81
  examples?: any[] | undefined;
82
82
  format?: string | undefined;
83
+ nullable?: boolean | undefined;
83
84
  file?: any;
84
85
  enabled?: boolean | undefined;
85
- nullable?: boolean | undefined;
86
86
  }>;
87
87
  /** Convert the array of parameters to an object keyed by the parameter name */
88
88
  export declare const parameterArrayToObject: (params: RequestExampleParameter[]) => Record<string, string>;
@@ -201,8 +201,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
201
201
  enum?: string[] | undefined;
202
202
  examples?: any[] | undefined;
203
203
  format?: string | undefined;
204
- file?: any;
205
204
  nullable?: boolean | undefined;
205
+ file?: any;
206
206
  }, {
207
207
  value?: string | undefined;
208
208
  minimum?: number | undefined;
@@ -215,9 +215,9 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
215
215
  key?: string | undefined;
216
216
  examples?: any[] | undefined;
217
217
  format?: string | undefined;
218
+ nullable?: boolean | undefined;
218
219
  file?: any;
219
220
  enabled?: boolean | undefined;
220
- nullable?: boolean | undefined;
221
221
  }>, {
222
222
  value: string;
223
223
  key: string;
@@ -231,8 +231,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
231
231
  enum?: string[] | undefined;
232
232
  examples?: any[] | undefined;
233
233
  format?: string | undefined;
234
- file?: any;
235
234
  nullable?: boolean | undefined;
235
+ file?: any;
236
236
  }, {
237
237
  value?: string | undefined;
238
238
  minimum?: number | undefined;
@@ -245,9 +245,9 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
245
245
  key?: string | undefined;
246
246
  examples?: any[] | undefined;
247
247
  format?: string | undefined;
248
+ nullable?: boolean | undefined;
248
249
  file?: any;
249
250
  enabled?: boolean | undefined;
250
- nullable?: boolean | undefined;
251
251
  }>, "many">>;
252
252
  }, "strip", z.ZodTypeAny, {
253
253
  value: {
@@ -263,8 +263,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
263
263
  enum?: string[] | undefined;
264
264
  examples?: any[] | undefined;
265
265
  format?: string | undefined;
266
- file?: any;
267
266
  nullable?: boolean | undefined;
267
+ file?: any;
268
268
  }[];
269
269
  encoding: "form-data" | "urlencoded";
270
270
  }, {
@@ -280,9 +280,9 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
280
280
  key?: string | undefined;
281
281
  examples?: any[] | undefined;
282
282
  format?: string | undefined;
283
+ nullable?: boolean | undefined;
283
284
  file?: any;
284
285
  enabled?: boolean | undefined;
285
- nullable?: boolean | undefined;
286
286
  }[] | undefined;
287
287
  encoding?: "form-data" | "urlencoded" | undefined;
288
288
  }>>;
@@ -305,8 +305,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
305
305
  enum?: string[] | undefined;
306
306
  examples?: any[] | undefined;
307
307
  format?: string | undefined;
308
- file?: any;
309
308
  nullable?: boolean | undefined;
309
+ file?: any;
310
310
  }[];
311
311
  encoding: "form-data" | "urlencoded";
312
312
  } | undefined;
@@ -330,9 +330,9 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
330
330
  key?: string | undefined;
331
331
  examples?: any[] | undefined;
332
332
  format?: string | undefined;
333
+ nullable?: boolean | undefined;
333
334
  file?: any;
334
335
  enabled?: boolean | undefined;
335
- nullable?: boolean | undefined;
336
336
  }[] | undefined;
337
337
  encoding?: "form-data" | "urlencoded" | undefined;
338
338
  } | undefined;
@@ -429,8 +429,8 @@ export declare const requestExampleSchema: z.ZodObject<{
429
429
  enum?: string[] | undefined;
430
430
  examples?: any[] | undefined;
431
431
  format?: string | undefined;
432
- file?: any;
433
432
  nullable?: boolean | undefined;
433
+ file?: any;
434
434
  }, {
435
435
  value?: string | undefined;
436
436
  minimum?: number | undefined;
@@ -443,9 +443,9 @@ export declare const requestExampleSchema: z.ZodObject<{
443
443
  key?: string | undefined;
444
444
  examples?: any[] | undefined;
445
445
  format?: string | undefined;
446
+ nullable?: boolean | undefined;
446
447
  file?: any;
447
448
  enabled?: boolean | undefined;
448
- nullable?: boolean | undefined;
449
449
  }>, {
450
450
  value: string;
451
451
  key: string;
@@ -459,8 +459,8 @@ export declare const requestExampleSchema: z.ZodObject<{
459
459
  enum?: string[] | undefined;
460
460
  examples?: any[] | undefined;
461
461
  format?: string | undefined;
462
- file?: any;
463
462
  nullable?: boolean | undefined;
463
+ file?: any;
464
464
  }, {
465
465
  value?: string | undefined;
466
466
  minimum?: number | undefined;
@@ -473,9 +473,9 @@ export declare const requestExampleSchema: z.ZodObject<{
473
473
  key?: string | undefined;
474
474
  examples?: any[] | undefined;
475
475
  format?: string | undefined;
476
+ nullable?: boolean | undefined;
476
477
  file?: any;
477
478
  enabled?: boolean | undefined;
478
- nullable?: boolean | undefined;
479
479
  }>, "many">>;
480
480
  }, "strip", z.ZodTypeAny, {
481
481
  value: {
@@ -491,8 +491,8 @@ export declare const requestExampleSchema: z.ZodObject<{
491
491
  enum?: string[] | undefined;
492
492
  examples?: any[] | undefined;
493
493
  format?: string | undefined;
494
- file?: any;
495
494
  nullable?: boolean | undefined;
495
+ file?: any;
496
496
  }[];
497
497
  encoding: "form-data" | "urlencoded";
498
498
  }, {
@@ -508,9 +508,9 @@ export declare const requestExampleSchema: z.ZodObject<{
508
508
  key?: string | undefined;
509
509
  examples?: any[] | undefined;
510
510
  format?: string | undefined;
511
+ nullable?: boolean | undefined;
511
512
  file?: any;
512
513
  enabled?: boolean | undefined;
513
- nullable?: boolean | undefined;
514
514
  }[] | undefined;
515
515
  encoding?: "form-data" | "urlencoded" | undefined;
516
516
  }>>;
@@ -533,8 +533,8 @@ export declare const requestExampleSchema: z.ZodObject<{
533
533
  enum?: string[] | undefined;
534
534
  examples?: any[] | undefined;
535
535
  format?: string | undefined;
536
- file?: any;
537
536
  nullable?: boolean | undefined;
537
+ file?: any;
538
538
  }[];
539
539
  encoding: "form-data" | "urlencoded";
540
540
  } | undefined;
@@ -558,9 +558,9 @@ export declare const requestExampleSchema: z.ZodObject<{
558
558
  key?: string | undefined;
559
559
  examples?: any[] | undefined;
560
560
  format?: string | undefined;
561
+ nullable?: boolean | undefined;
561
562
  file?: any;
562
563
  enabled?: boolean | undefined;
563
- nullable?: boolean | undefined;
564
564
  }[] | undefined;
565
565
  encoding?: "form-data" | "urlencoded" | undefined;
566
566
  } | undefined;
@@ -600,8 +600,8 @@ export declare const requestExampleSchema: z.ZodObject<{
600
600
  enum?: string[] | undefined;
601
601
  examples?: any[] | undefined;
602
602
  format?: string | undefined;
603
- file?: any;
604
603
  nullable?: boolean | undefined;
604
+ file?: any;
605
605
  }, {
606
606
  value?: string | undefined;
607
607
  minimum?: number | undefined;
@@ -614,9 +614,9 @@ export declare const requestExampleSchema: z.ZodObject<{
614
614
  key?: string | undefined;
615
615
  examples?: any[] | undefined;
616
616
  format?: string | undefined;
617
+ nullable?: boolean | undefined;
617
618
  file?: any;
618
619
  enabled?: boolean | undefined;
619
- nullable?: boolean | undefined;
620
620
  }>, {
621
621
  value: string;
622
622
  key: string;
@@ -630,8 +630,8 @@ export declare const requestExampleSchema: z.ZodObject<{
630
630
  enum?: string[] | undefined;
631
631
  examples?: any[] | undefined;
632
632
  format?: string | undefined;
633
- file?: any;
634
633
  nullable?: boolean | undefined;
634
+ file?: any;
635
635
  }, {
636
636
  value?: string | undefined;
637
637
  minimum?: number | undefined;
@@ -644,9 +644,9 @@ export declare const requestExampleSchema: z.ZodObject<{
644
644
  key?: string | undefined;
645
645
  examples?: any[] | undefined;
646
646
  format?: string | undefined;
647
+ nullable?: boolean | undefined;
647
648
  file?: any;
648
649
  enabled?: boolean | undefined;
649
- nullable?: boolean | undefined;
650
650
  }>, "many">>;
651
651
  query: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
652
652
  key: z.ZodDefault<z.ZodString>;
@@ -676,8 +676,8 @@ export declare const requestExampleSchema: z.ZodObject<{
676
676
  enum?: string[] | undefined;
677
677
  examples?: any[] | undefined;
678
678
  format?: string | undefined;
679
- file?: any;
680
679
  nullable?: boolean | undefined;
680
+ file?: any;
681
681
  }, {
682
682
  value?: string | undefined;
683
683
  minimum?: number | undefined;
@@ -690,9 +690,9 @@ export declare const requestExampleSchema: z.ZodObject<{
690
690
  key?: string | undefined;
691
691
  examples?: any[] | undefined;
692
692
  format?: string | undefined;
693
+ nullable?: boolean | undefined;
693
694
  file?: any;
694
695
  enabled?: boolean | undefined;
695
- nullable?: boolean | undefined;
696
696
  }>, {
697
697
  value: string;
698
698
  key: string;
@@ -706,8 +706,8 @@ export declare const requestExampleSchema: z.ZodObject<{
706
706
  enum?: string[] | undefined;
707
707
  examples?: any[] | undefined;
708
708
  format?: string | undefined;
709
- file?: any;
710
709
  nullable?: boolean | undefined;
710
+ file?: any;
711
711
  }, {
712
712
  value?: string | undefined;
713
713
  minimum?: number | undefined;
@@ -720,9 +720,9 @@ export declare const requestExampleSchema: z.ZodObject<{
720
720
  key?: string | undefined;
721
721
  examples?: any[] | undefined;
722
722
  format?: string | undefined;
723
+ nullable?: boolean | undefined;
723
724
  file?: any;
724
725
  enabled?: boolean | undefined;
725
- nullable?: boolean | undefined;
726
726
  }>, "many">>;
727
727
  headers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
728
728
  key: z.ZodDefault<z.ZodString>;
@@ -752,8 +752,8 @@ export declare const requestExampleSchema: z.ZodObject<{
752
752
  enum?: string[] | undefined;
753
753
  examples?: any[] | undefined;
754
754
  format?: string | undefined;
755
- file?: any;
756
755
  nullable?: boolean | undefined;
756
+ file?: any;
757
757
  }, {
758
758
  value?: string | undefined;
759
759
  minimum?: number | undefined;
@@ -766,9 +766,9 @@ export declare const requestExampleSchema: z.ZodObject<{
766
766
  key?: string | undefined;
767
767
  examples?: any[] | undefined;
768
768
  format?: string | undefined;
769
+ nullable?: boolean | undefined;
769
770
  file?: any;
770
771
  enabled?: boolean | undefined;
771
- nullable?: boolean | undefined;
772
772
  }>, {
773
773
  value: string;
774
774
  key: string;
@@ -782,8 +782,8 @@ export declare const requestExampleSchema: z.ZodObject<{
782
782
  enum?: string[] | undefined;
783
783
  examples?: any[] | undefined;
784
784
  format?: string | undefined;
785
- file?: any;
786
785
  nullable?: boolean | undefined;
786
+ file?: any;
787
787
  }, {
788
788
  value?: string | undefined;
789
789
  minimum?: number | undefined;
@@ -796,9 +796,9 @@ export declare const requestExampleSchema: z.ZodObject<{
796
796
  key?: string | undefined;
797
797
  examples?: any[] | undefined;
798
798
  format?: string | undefined;
799
+ nullable?: boolean | undefined;
799
800
  file?: any;
800
801
  enabled?: boolean | undefined;
801
- nullable?: boolean | undefined;
802
802
  }>, "many">>;
803
803
  cookies: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
804
804
  key: z.ZodDefault<z.ZodString>;
@@ -828,8 +828,8 @@ export declare const requestExampleSchema: z.ZodObject<{
828
828
  enum?: string[] | undefined;
829
829
  examples?: any[] | undefined;
830
830
  format?: string | undefined;
831
- file?: any;
832
831
  nullable?: boolean | undefined;
832
+ file?: any;
833
833
  }, {
834
834
  value?: string | undefined;
835
835
  minimum?: number | undefined;
@@ -842,9 +842,9 @@ export declare const requestExampleSchema: z.ZodObject<{
842
842
  key?: string | undefined;
843
843
  examples?: any[] | undefined;
844
844
  format?: string | undefined;
845
+ nullable?: boolean | undefined;
845
846
  file?: any;
846
847
  enabled?: boolean | undefined;
847
- nullable?: boolean | undefined;
848
848
  }>, {
849
849
  value: string;
850
850
  key: string;
@@ -858,8 +858,8 @@ export declare const requestExampleSchema: z.ZodObject<{
858
858
  enum?: string[] | undefined;
859
859
  examples?: any[] | undefined;
860
860
  format?: string | undefined;
861
- file?: any;
862
861
  nullable?: boolean | undefined;
862
+ file?: any;
863
863
  }, {
864
864
  value?: string | undefined;
865
865
  minimum?: number | undefined;
@@ -872,9 +872,9 @@ export declare const requestExampleSchema: z.ZodObject<{
872
872
  key?: string | undefined;
873
873
  examples?: any[] | undefined;
874
874
  format?: string | undefined;
875
+ nullable?: boolean | undefined;
875
876
  file?: any;
876
877
  enabled?: boolean | undefined;
877
- nullable?: boolean | undefined;
878
878
  }>, "many">>;
879
879
  }, "strip", z.ZodTypeAny, {
880
880
  path: {
@@ -890,8 +890,8 @@ export declare const requestExampleSchema: z.ZodObject<{
890
890
  enum?: string[] | undefined;
891
891
  examples?: any[] | undefined;
892
892
  format?: string | undefined;
893
- file?: any;
894
893
  nullable?: boolean | undefined;
894
+ file?: any;
895
895
  }[];
896
896
  headers: {
897
897
  value: string;
@@ -906,8 +906,8 @@ export declare const requestExampleSchema: z.ZodObject<{
906
906
  enum?: string[] | undefined;
907
907
  examples?: any[] | undefined;
908
908
  format?: string | undefined;
909
- file?: any;
910
909
  nullable?: boolean | undefined;
910
+ file?: any;
911
911
  }[];
912
912
  query: {
913
913
  value: string;
@@ -922,8 +922,8 @@ export declare const requestExampleSchema: z.ZodObject<{
922
922
  enum?: string[] | undefined;
923
923
  examples?: any[] | undefined;
924
924
  format?: string | undefined;
925
- file?: any;
926
925
  nullable?: boolean | undefined;
926
+ file?: any;
927
927
  }[];
928
928
  cookies: {
929
929
  value: string;
@@ -938,8 +938,8 @@ export declare const requestExampleSchema: z.ZodObject<{
938
938
  enum?: string[] | undefined;
939
939
  examples?: any[] | undefined;
940
940
  format?: string | undefined;
941
- file?: any;
942
941
  nullable?: boolean | undefined;
942
+ file?: any;
943
943
  }[];
944
944
  }, {
945
945
  path?: {
@@ -954,9 +954,9 @@ export declare const requestExampleSchema: z.ZodObject<{
954
954
  key?: string | undefined;
955
955
  examples?: any[] | undefined;
956
956
  format?: string | undefined;
957
+ nullable?: boolean | undefined;
957
958
  file?: any;
958
959
  enabled?: boolean | undefined;
959
- nullable?: boolean | undefined;
960
960
  }[] | undefined;
961
961
  headers?: {
962
962
  value?: string | undefined;
@@ -970,9 +970,9 @@ export declare const requestExampleSchema: z.ZodObject<{
970
970
  key?: string | undefined;
971
971
  examples?: any[] | undefined;
972
972
  format?: string | undefined;
973
+ nullable?: boolean | undefined;
973
974
  file?: any;
974
975
  enabled?: boolean | undefined;
975
- nullable?: boolean | undefined;
976
976
  }[] | undefined;
977
977
  query?: {
978
978
  value?: string | undefined;
@@ -986,9 +986,9 @@ export declare const requestExampleSchema: z.ZodObject<{
986
986
  key?: string | undefined;
987
987
  examples?: any[] | undefined;
988
988
  format?: string | undefined;
989
+ nullable?: boolean | undefined;
989
990
  file?: any;
990
991
  enabled?: boolean | undefined;
991
- nullable?: boolean | undefined;
992
992
  }[] | undefined;
993
993
  cookies?: {
994
994
  value?: string | undefined;
@@ -1002,9 +1002,9 @@ export declare const requestExampleSchema: z.ZodObject<{
1002
1002
  key?: string | undefined;
1003
1003
  examples?: any[] | undefined;
1004
1004
  format?: string | undefined;
1005
+ nullable?: boolean | undefined;
1005
1006
  file?: any;
1006
1007
  enabled?: boolean | undefined;
1007
- nullable?: boolean | undefined;
1008
1008
  }[] | undefined;
1009
1009
  }>>>;
1010
1010
  /** TODO: Should this be deprecated? */
@@ -1027,8 +1027,8 @@ export declare const requestExampleSchema: z.ZodObject<{
1027
1027
  enum?: string[] | undefined;
1028
1028
  examples?: any[] | undefined;
1029
1029
  format?: string | undefined;
1030
- file?: any;
1031
1030
  nullable?: boolean | undefined;
1031
+ file?: any;
1032
1032
  }[];
1033
1033
  headers: {
1034
1034
  value: string;
@@ -1043,8 +1043,8 @@ export declare const requestExampleSchema: z.ZodObject<{
1043
1043
  enum?: string[] | undefined;
1044
1044
  examples?: any[] | undefined;
1045
1045
  format?: string | undefined;
1046
- file?: any;
1047
1046
  nullable?: boolean | undefined;
1047
+ file?: any;
1048
1048
  }[];
1049
1049
  query: {
1050
1050
  value: string;
@@ -1059,8 +1059,8 @@ export declare const requestExampleSchema: z.ZodObject<{
1059
1059
  enum?: string[] | undefined;
1060
1060
  examples?: any[] | undefined;
1061
1061
  format?: string | undefined;
1062
- file?: any;
1063
1062
  nullable?: boolean | undefined;
1063
+ file?: any;
1064
1064
  }[];
1065
1065
  cookies: {
1066
1066
  value: string;
@@ -1075,8 +1075,8 @@ export declare const requestExampleSchema: z.ZodObject<{
1075
1075
  enum?: string[] | undefined;
1076
1076
  examples?: any[] | undefined;
1077
1077
  format?: string | undefined;
1078
- file?: any;
1079
1078
  nullable?: boolean | undefined;
1079
+ file?: any;
1080
1080
  }[];
1081
1081
  };
1082
1082
  body: {
@@ -1096,8 +1096,8 @@ export declare const requestExampleSchema: z.ZodObject<{
1096
1096
  enum?: string[] | undefined;
1097
1097
  examples?: any[] | undefined;
1098
1098
  format?: string | undefined;
1099
- file?: any;
1100
1099
  nullable?: boolean | undefined;
1100
+ file?: any;
1101
1101
  }[];
1102
1102
  encoding: "form-data" | "urlencoded";
1103
1103
  } | undefined;
@@ -1126,9 +1126,9 @@ export declare const requestExampleSchema: z.ZodObject<{
1126
1126
  key?: string | undefined;
1127
1127
  examples?: any[] | undefined;
1128
1128
  format?: string | undefined;
1129
+ nullable?: boolean | undefined;
1129
1130
  file?: any;
1130
1131
  enabled?: boolean | undefined;
1131
- nullable?: boolean | undefined;
1132
1132
  }[] | undefined;
1133
1133
  headers?: {
1134
1134
  value?: string | undefined;
@@ -1142,9 +1142,9 @@ export declare const requestExampleSchema: z.ZodObject<{
1142
1142
  key?: string | undefined;
1143
1143
  examples?: any[] | undefined;
1144
1144
  format?: string | undefined;
1145
+ nullable?: boolean | undefined;
1145
1146
  file?: any;
1146
1147
  enabled?: boolean | undefined;
1147
- nullable?: boolean | undefined;
1148
1148
  }[] | undefined;
1149
1149
  query?: {
1150
1150
  value?: string | undefined;
@@ -1158,9 +1158,9 @@ export declare const requestExampleSchema: z.ZodObject<{
1158
1158
  key?: string | undefined;
1159
1159
  examples?: any[] | undefined;
1160
1160
  format?: string | undefined;
1161
+ nullable?: boolean | undefined;
1161
1162
  file?: any;
1162
1163
  enabled?: boolean | undefined;
1163
- nullable?: boolean | undefined;
1164
1164
  }[] | undefined;
1165
1165
  cookies?: {
1166
1166
  value?: string | undefined;
@@ -1174,9 +1174,9 @@ export declare const requestExampleSchema: z.ZodObject<{
1174
1174
  key?: string | undefined;
1175
1175
  examples?: any[] | undefined;
1176
1176
  format?: string | undefined;
1177
+ nullable?: boolean | undefined;
1177
1178
  file?: any;
1178
1179
  enabled?: boolean | undefined;
1179
- nullable?: boolean | undefined;
1180
1180
  }[] | undefined;
1181
1181
  } | undefined;
1182
1182
  body?: {
@@ -1194,9 +1194,9 @@ export declare const requestExampleSchema: z.ZodObject<{
1194
1194
  key?: string | undefined;
1195
1195
  examples?: any[] | undefined;
1196
1196
  format?: string | undefined;
1197
+ nullable?: boolean | undefined;
1197
1198
  file?: any;
1198
1199
  enabled?: boolean | undefined;
1199
- nullable?: boolean | undefined;
1200
1200
  }[] | undefined;
1201
1201
  encoding?: "form-data" | "urlencoded" | undefined;
1202
1202
  } | undefined;
@@ -1335,8 +1335,8 @@ export declare function createParamInstance(param: RequestParameter): {
1335
1335
  enum?: string[] | undefined;
1336
1336
  examples?: any[] | undefined;
1337
1337
  format?: string | undefined;
1338
- file?: any;
1339
1338
  nullable?: boolean | undefined;
1339
+ file?: any;
1340
1340
  };
1341
1341
  /**
1342
1342
  * Create new request example from a request
@@ -1 +1 @@
1
- {"version":3,"file":"request-examples.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/request-examples.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAKtC;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCvC,CAAA;AAEJ,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB,WAAY,uBAAuB,EAAE,2BAIhE,CAAA;AAER,kFAAkF;AAClF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CA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