@platformatic/basic 3.4.1 → 3.5.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.
package/schema.json CHANGED
@@ -1,11 +1,1286 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.4.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.5.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "title": "Platformatic Stackable",
4
+ "title": "Platformatic Basic Config",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "$schema": {
8
8
  "type": "string"
9
+ },
10
+ "runtime": {
11
+ "type": "object",
12
+ "properties": {
13
+ "preload": {
14
+ "anyOf": [
15
+ {
16
+ "type": "string",
17
+ "resolvePath": true
18
+ },
19
+ {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "resolvePath": true
24
+ }
25
+ }
26
+ ]
27
+ },
28
+ "basePath": {
29
+ "type": "string"
30
+ },
31
+ "services": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "anyOf": [
36
+ {
37
+ "required": [
38
+ "id",
39
+ "path"
40
+ ]
41
+ },
42
+ {
43
+ "required": [
44
+ "id",
45
+ "url"
46
+ ]
47
+ }
48
+ ],
49
+ "properties": {
50
+ "id": {
51
+ "type": "string"
52
+ },
53
+ "path": {
54
+ "type": "string",
55
+ "allowEmptyPaths": true,
56
+ "resolvePath": true
57
+ },
58
+ "config": {
59
+ "type": "string"
60
+ },
61
+ "url": {
62
+ "type": "string"
63
+ },
64
+ "gitBranch": {
65
+ "type": "string",
66
+ "default": "main"
67
+ },
68
+ "useHttp": {
69
+ "type": "boolean"
70
+ },
71
+ "workers": {
72
+ "anyOf": [
73
+ {
74
+ "type": "number",
75
+ "minimum": 1
76
+ },
77
+ {
78
+ "type": "string"
79
+ }
80
+ ]
81
+ },
82
+ "health": {
83
+ "type": "object",
84
+ "default": {},
85
+ "properties": {
86
+ "enabled": {
87
+ "anyOf": [
88
+ {
89
+ "type": "boolean"
90
+ },
91
+ {
92
+ "type": "string"
93
+ }
94
+ ]
95
+ },
96
+ "interval": {
97
+ "anyOf": [
98
+ {
99
+ "type": "number",
100
+ "minimum": 0
101
+ },
102
+ {
103
+ "type": "string"
104
+ }
105
+ ]
106
+ },
107
+ "gracePeriod": {
108
+ "anyOf": [
109
+ {
110
+ "type": "number",
111
+ "minimum": 0
112
+ },
113
+ {
114
+ "type": "string"
115
+ }
116
+ ]
117
+ },
118
+ "maxUnhealthyChecks": {
119
+ "anyOf": [
120
+ {
121
+ "type": "number",
122
+ "minimum": 1
123
+ },
124
+ {
125
+ "type": "string"
126
+ }
127
+ ]
128
+ },
129
+ "maxELU": {
130
+ "anyOf": [
131
+ {
132
+ "type": "number",
133
+ "minimum": 0,
134
+ "maximum": 1
135
+ },
136
+ {
137
+ "type": "string"
138
+ }
139
+ ]
140
+ },
141
+ "maxHeapUsed": {
142
+ "anyOf": [
143
+ {
144
+ "type": "number",
145
+ "minimum": 0,
146
+ "maximum": 1
147
+ },
148
+ {
149
+ "type": "string"
150
+ }
151
+ ]
152
+ },
153
+ "maxHeapTotal": {
154
+ "anyOf": [
155
+ {
156
+ "type": "number",
157
+ "minimum": 0
158
+ },
159
+ {
160
+ "type": "string"
161
+ }
162
+ ]
163
+ },
164
+ "maxYoungGeneration": {
165
+ "anyOf": [
166
+ {
167
+ "type": "number",
168
+ "minimum": 0
169
+ },
170
+ {
171
+ "type": "string"
172
+ }
173
+ ]
174
+ }
175
+ },
176
+ "additionalProperties": false
177
+ },
178
+ "dependencies": {
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string"
182
+ },
183
+ "default": []
184
+ },
185
+ "arguments": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": "string"
189
+ }
190
+ },
191
+ "env": {
192
+ "type": "object",
193
+ "additionalProperties": {
194
+ "type": "string"
195
+ }
196
+ },
197
+ "envfile": {
198
+ "type": "string"
199
+ },
200
+ "sourceMaps": {
201
+ "type": "boolean",
202
+ "default": false
203
+ },
204
+ "packageManager": {
205
+ "type": "string",
206
+ "enum": [
207
+ "npm",
208
+ "pnpm",
209
+ "yarn"
210
+ ]
211
+ },
212
+ "preload": {
213
+ "anyOf": [
214
+ {
215
+ "type": "string",
216
+ "resolvePath": true
217
+ },
218
+ {
219
+ "type": "array",
220
+ "items": {
221
+ "type": "string",
222
+ "resolvePath": true
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ "nodeOptions": {
228
+ "type": "string"
229
+ },
230
+ "telemetry": {
231
+ "type": "object",
232
+ "properties": {
233
+ "instrumentations": {
234
+ "type": "array",
235
+ "description": "An array of instrumentations loaded if telemetry is enabled",
236
+ "items": {
237
+ "oneOf": [
238
+ {
239
+ "type": "string"
240
+ },
241
+ {
242
+ "type": "object",
243
+ "properties": {
244
+ "package": {
245
+ "type": "string"
246
+ },
247
+ "exportName": {
248
+ "type": "string"
249
+ },
250
+ "options": {
251
+ "type": "object",
252
+ "additionalProperties": true
253
+ }
254
+ },
255
+ "required": [
256
+ "package"
257
+ ]
258
+ }
259
+ ]
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ },
267
+ "workers": {
268
+ "anyOf": [
269
+ {
270
+ "type": "number",
271
+ "minimum": 1
272
+ },
273
+ {
274
+ "type": "string"
275
+ }
276
+ ],
277
+ "default": 1
278
+ },
279
+ "logger": {
280
+ "type": "object",
281
+ "properties": {
282
+ "level": {
283
+ "type": "string",
284
+ "default": "info",
285
+ "oneOf": [
286
+ {
287
+ "enum": [
288
+ "fatal",
289
+ "error",
290
+ "warn",
291
+ "info",
292
+ "debug",
293
+ "trace",
294
+ "silent"
295
+ ]
296
+ },
297
+ {
298
+ "pattern": "^\\{.+\\}$"
299
+ }
300
+ ]
301
+ },
302
+ "transport": {
303
+ "anyOf": [
304
+ {
305
+ "type": "object",
306
+ "properties": {
307
+ "target": {
308
+ "type": "string",
309
+ "resolveModule": true
310
+ },
311
+ "options": {
312
+ "type": "object"
313
+ }
314
+ },
315
+ "additionalProperties": false
316
+ },
317
+ {
318
+ "type": "object",
319
+ "properties": {
320
+ "targets": {
321
+ "type": "array",
322
+ "items": {
323
+ "type": "object",
324
+ "properties": {
325
+ "target": {
326
+ "anyOf": [
327
+ {
328
+ "type": "string",
329
+ "resolveModule": true
330
+ },
331
+ {
332
+ "type": "string",
333
+ "resolvePath": true
334
+ }
335
+ ]
336
+ },
337
+ "options": {
338
+ "type": "object"
339
+ },
340
+ "level": {
341
+ "type": "string"
342
+ }
343
+ },
344
+ "additionalProperties": false
345
+ }
346
+ },
347
+ "options": {
348
+ "type": "object"
349
+ }
350
+ },
351
+ "additionalProperties": false
352
+ }
353
+ ]
354
+ },
355
+ "pipeline": {
356
+ "type": "object",
357
+ "properties": {
358
+ "target": {
359
+ "type": "string",
360
+ "resolveModule": true
361
+ },
362
+ "options": {
363
+ "type": "object"
364
+ }
365
+ },
366
+ "additionalProperties": false
367
+ },
368
+ "formatters": {
369
+ "type": "object",
370
+ "properties": {
371
+ "path": {
372
+ "type": "string",
373
+ "resolvePath": true
374
+ }
375
+ },
376
+ "required": [
377
+ "path"
378
+ ],
379
+ "additionalProperties": false
380
+ },
381
+ "timestamp": {
382
+ "enum": [
383
+ "epochTime",
384
+ "unixTime",
385
+ "nullTime",
386
+ "isoTime"
387
+ ]
388
+ },
389
+ "redact": {
390
+ "type": "object",
391
+ "properties": {
392
+ "paths": {
393
+ "type": "array",
394
+ "items": {
395
+ "type": "string"
396
+ }
397
+ },
398
+ "censor": {
399
+ "type": "string",
400
+ "default": "[redacted]"
401
+ }
402
+ },
403
+ "required": [
404
+ "paths"
405
+ ],
406
+ "additionalProperties": false
407
+ },
408
+ "base": {
409
+ "anyOf": [
410
+ {
411
+ "type": "object",
412
+ "additionalProperties": true
413
+ },
414
+ {
415
+ "type": "null"
416
+ }
417
+ ]
418
+ },
419
+ "messageKey": {
420
+ "type": "string"
421
+ },
422
+ "customLevels": {
423
+ "type": "object",
424
+ "additionalProperties": true
425
+ }
426
+ },
427
+ "required": [
428
+ "level"
429
+ ],
430
+ "default": {},
431
+ "additionalProperties": true
432
+ },
433
+ "server": {
434
+ "type": "object",
435
+ "properties": {
436
+ "hostname": {
437
+ "type": "string",
438
+ "default": "127.0.0.1"
439
+ },
440
+ "port": {
441
+ "anyOf": [
442
+ {
443
+ "type": "integer"
444
+ },
445
+ {
446
+ "type": "string"
447
+ }
448
+ ]
449
+ },
450
+ "http2": {
451
+ "type": "boolean"
452
+ },
453
+ "https": {
454
+ "type": "object",
455
+ "properties": {
456
+ "allowHTTP1": {
457
+ "type": "boolean"
458
+ },
459
+ "key": {
460
+ "anyOf": [
461
+ {
462
+ "type": "string"
463
+ },
464
+ {
465
+ "type": "object",
466
+ "properties": {
467
+ "path": {
468
+ "type": "string",
469
+ "resolvePath": true
470
+ }
471
+ },
472
+ "additionalProperties": false
473
+ },
474
+ {
475
+ "type": "array",
476
+ "items": {
477
+ "anyOf": [
478
+ {
479
+ "type": "string"
480
+ },
481
+ {
482
+ "type": "object",
483
+ "properties": {
484
+ "path": {
485
+ "type": "string",
486
+ "resolvePath": true
487
+ }
488
+ },
489
+ "additionalProperties": false
490
+ }
491
+ ]
492
+ }
493
+ }
494
+ ]
495
+ },
496
+ "cert": {
497
+ "anyOf": [
498
+ {
499
+ "type": "string"
500
+ },
501
+ {
502
+ "type": "object",
503
+ "properties": {
504
+ "path": {
505
+ "type": "string",
506
+ "resolvePath": true
507
+ }
508
+ },
509
+ "additionalProperties": false
510
+ },
511
+ {
512
+ "type": "array",
513
+ "items": {
514
+ "anyOf": [
515
+ {
516
+ "type": "string"
517
+ },
518
+ {
519
+ "type": "object",
520
+ "properties": {
521
+ "path": {
522
+ "type": "string",
523
+ "resolvePath": true
524
+ }
525
+ },
526
+ "additionalProperties": false
527
+ }
528
+ ]
529
+ }
530
+ }
531
+ ]
532
+ },
533
+ "requestCert": {
534
+ "type": "boolean"
535
+ },
536
+ "rejectUnauthorized": {
537
+ "type": "boolean"
538
+ }
539
+ },
540
+ "additionalProperties": false,
541
+ "required": [
542
+ "key",
543
+ "cert"
544
+ ]
545
+ }
546
+ },
547
+ "additionalProperties": false
548
+ },
549
+ "startTimeout": {
550
+ "default": 30000,
551
+ "type": "number",
552
+ "minimum": 0
553
+ },
554
+ "restartOnError": {
555
+ "default": true,
556
+ "anyOf": [
557
+ {
558
+ "type": "boolean"
559
+ },
560
+ {
561
+ "type": "number",
562
+ "minimum": 0
563
+ }
564
+ ]
565
+ },
566
+ "exitOnUnhandledErrors": {
567
+ "default": true,
568
+ "type": "boolean"
569
+ },
570
+ "gracefulShutdown": {
571
+ "type": "object",
572
+ "properties": {
573
+ "runtime": {
574
+ "anyOf": [
575
+ {
576
+ "type": "number",
577
+ "minimum": 1
578
+ },
579
+ {
580
+ "type": "string"
581
+ }
582
+ ],
583
+ "default": 10000
584
+ },
585
+ "application": {
586
+ "anyOf": [
587
+ {
588
+ "type": "number",
589
+ "minimum": 1
590
+ },
591
+ {
592
+ "type": "string"
593
+ }
594
+ ],
595
+ "default": 10000
596
+ }
597
+ },
598
+ "default": {},
599
+ "required": [
600
+ "runtime",
601
+ "application"
602
+ ],
603
+ "additionalProperties": false
604
+ },
605
+ "health": {
606
+ "type": "object",
607
+ "default": {},
608
+ "properties": {
609
+ "enabled": {
610
+ "anyOf": [
611
+ {
612
+ "type": "boolean"
613
+ },
614
+ {
615
+ "type": "string"
616
+ }
617
+ ],
618
+ "default": true
619
+ },
620
+ "interval": {
621
+ "anyOf": [
622
+ {
623
+ "type": "number",
624
+ "minimum": 0
625
+ },
626
+ {
627
+ "type": "string"
628
+ }
629
+ ],
630
+ "default": 30000
631
+ },
632
+ "gracePeriod": {
633
+ "anyOf": [
634
+ {
635
+ "type": "number",
636
+ "minimum": 0
637
+ },
638
+ {
639
+ "type": "string"
640
+ }
641
+ ],
642
+ "default": 30000
643
+ },
644
+ "maxUnhealthyChecks": {
645
+ "anyOf": [
646
+ {
647
+ "type": "number",
648
+ "minimum": 1
649
+ },
650
+ {
651
+ "type": "string"
652
+ }
653
+ ],
654
+ "default": 10
655
+ },
656
+ "maxELU": {
657
+ "anyOf": [
658
+ {
659
+ "type": "number",
660
+ "minimum": 0,
661
+ "maximum": 1
662
+ },
663
+ {
664
+ "type": "string"
665
+ }
666
+ ],
667
+ "default": 0.99
668
+ },
669
+ "maxHeapUsed": {
670
+ "anyOf": [
671
+ {
672
+ "type": "number",
673
+ "minimum": 0,
674
+ "maximum": 1
675
+ },
676
+ {
677
+ "type": "string"
678
+ }
679
+ ],
680
+ "default": 0.99
681
+ },
682
+ "maxHeapTotal": {
683
+ "anyOf": [
684
+ {
685
+ "type": "number",
686
+ "minimum": 0
687
+ },
688
+ {
689
+ "type": "string"
690
+ }
691
+ ],
692
+ "default": 4294967296
693
+ },
694
+ "maxYoungGeneration": {
695
+ "anyOf": [
696
+ {
697
+ "type": "number",
698
+ "minimum": 0
699
+ },
700
+ {
701
+ "type": "string"
702
+ }
703
+ ]
704
+ }
705
+ },
706
+ "additionalProperties": false
707
+ },
708
+ "undici": {
709
+ "type": "object",
710
+ "properties": {
711
+ "agentOptions": {
712
+ "type": "object",
713
+ "additionalProperties": true
714
+ },
715
+ "interceptors": {
716
+ "anyOf": [
717
+ {
718
+ "type": "array",
719
+ "items": {
720
+ "type": "object",
721
+ "properties": {
722
+ "module": {
723
+ "type": "string"
724
+ },
725
+ "options": {
726
+ "type": "object",
727
+ "additionalProperties": true
728
+ }
729
+ },
730
+ "required": [
731
+ "module",
732
+ "options"
733
+ ]
734
+ }
735
+ },
736
+ {
737
+ "type": "object",
738
+ "properties": {
739
+ "Client": {
740
+ "type": "array",
741
+ "items": {
742
+ "type": "object",
743
+ "properties": {
744
+ "module": {
745
+ "type": "string"
746
+ },
747
+ "options": {
748
+ "type": "object",
749
+ "additionalProperties": true
750
+ }
751
+ },
752
+ "required": [
753
+ "module",
754
+ "options"
755
+ ]
756
+ }
757
+ },
758
+ "Pool": {
759
+ "type": "array",
760
+ "items": {
761
+ "type": "object",
762
+ "properties": {
763
+ "module": {
764
+ "type": "string"
765
+ },
766
+ "options": {
767
+ "type": "object",
768
+ "additionalProperties": true
769
+ }
770
+ },
771
+ "required": [
772
+ "module",
773
+ "options"
774
+ ]
775
+ }
776
+ },
777
+ "Agent": {
778
+ "type": "array",
779
+ "items": {
780
+ "type": "object",
781
+ "properties": {
782
+ "module": {
783
+ "type": "string"
784
+ },
785
+ "options": {
786
+ "type": "object",
787
+ "additionalProperties": true
788
+ }
789
+ },
790
+ "required": [
791
+ "module",
792
+ "options"
793
+ ]
794
+ }
795
+ }
796
+ }
797
+ }
798
+ ]
799
+ }
800
+ }
801
+ },
802
+ "httpCache": {
803
+ "oneOf": [
804
+ {
805
+ "type": "boolean"
806
+ },
807
+ {
808
+ "type": "object",
809
+ "properties": {
810
+ "store": {
811
+ "type": "string"
812
+ },
813
+ "methods": {
814
+ "type": "array",
815
+ "items": {
816
+ "type": "string"
817
+ },
818
+ "default": [
819
+ "GET",
820
+ "HEAD"
821
+ ],
822
+ "minItems": 1
823
+ },
824
+ "cacheTagsHeader": {
825
+ "type": "string"
826
+ },
827
+ "maxSize": {
828
+ "type": "integer"
829
+ },
830
+ "maxEntrySize": {
831
+ "type": "integer"
832
+ },
833
+ "maxCount": {
834
+ "type": "integer"
835
+ }
836
+ }
837
+ }
838
+ ]
839
+ },
840
+ "watch": {
841
+ "anyOf": [
842
+ {
843
+ "type": "boolean"
844
+ },
845
+ {
846
+ "type": "string"
847
+ }
848
+ ]
849
+ },
850
+ "managementApi": {
851
+ "anyOf": [
852
+ {
853
+ "type": "boolean"
854
+ },
855
+ {
856
+ "type": "string"
857
+ },
858
+ {
859
+ "type": "object",
860
+ "properties": {
861
+ "logs": {
862
+ "type": "object",
863
+ "properties": {
864
+ "maxSize": {
865
+ "type": "number",
866
+ "minimum": 5,
867
+ "default": 200
868
+ }
869
+ },
870
+ "additionalProperties": false
871
+ }
872
+ },
873
+ "additionalProperties": false
874
+ }
875
+ ],
876
+ "default": true
877
+ },
878
+ "metrics": {
879
+ "anyOf": [
880
+ {
881
+ "type": "boolean"
882
+ },
883
+ {
884
+ "type": "object",
885
+ "properties": {
886
+ "port": {
887
+ "anyOf": [
888
+ {
889
+ "type": "integer"
890
+ },
891
+ {
892
+ "type": "string"
893
+ }
894
+ ]
895
+ },
896
+ "enabled": {
897
+ "anyOf": [
898
+ {
899
+ "type": "boolean"
900
+ },
901
+ {
902
+ "type": "string"
903
+ }
904
+ ]
905
+ },
906
+ "hostname": {
907
+ "type": "string"
908
+ },
909
+ "endpoint": {
910
+ "type": "string"
911
+ },
912
+ "auth": {
913
+ "type": "object",
914
+ "properties": {
915
+ "username": {
916
+ "type": "string"
917
+ },
918
+ "password": {
919
+ "type": "string"
920
+ }
921
+ },
922
+ "additionalProperties": false,
923
+ "required": [
924
+ "username",
925
+ "password"
926
+ ]
927
+ },
928
+ "labels": {
929
+ "type": "object",
930
+ "additionalProperties": {
931
+ "type": "string"
932
+ }
933
+ },
934
+ "applicationLabel": {
935
+ "type": "string",
936
+ "default": "applicationId",
937
+ "description": "The label name to use for the application identifier in metrics (e.g., applicationId, serviceId)"
938
+ },
939
+ "readiness": {
940
+ "anyOf": [
941
+ {
942
+ "type": "boolean"
943
+ },
944
+ {
945
+ "type": "object",
946
+ "properties": {
947
+ "endpoint": {
948
+ "type": "string"
949
+ },
950
+ "success": {
951
+ "type": "object",
952
+ "properties": {
953
+ "statusCode": {
954
+ "type": "number"
955
+ },
956
+ "body": {
957
+ "type": "string"
958
+ }
959
+ },
960
+ "additionalProperties": false
961
+ },
962
+ "fail": {
963
+ "type": "object",
964
+ "properties": {
965
+ "statusCode": {
966
+ "type": "number"
967
+ },
968
+ "body": {
969
+ "type": "string"
970
+ }
971
+ },
972
+ "additionalProperties": false
973
+ }
974
+ },
975
+ "additionalProperties": false
976
+ }
977
+ ]
978
+ },
979
+ "liveness": {
980
+ "anyOf": [
981
+ {
982
+ "type": "boolean"
983
+ },
984
+ {
985
+ "type": "object",
986
+ "properties": {
987
+ "endpoint": {
988
+ "type": "string"
989
+ },
990
+ "success": {
991
+ "type": "object",
992
+ "properties": {
993
+ "statusCode": {
994
+ "type": "number"
995
+ },
996
+ "body": {
997
+ "type": "string"
998
+ }
999
+ },
1000
+ "additionalProperties": false
1001
+ },
1002
+ "fail": {
1003
+ "type": "object",
1004
+ "properties": {
1005
+ "statusCode": {
1006
+ "type": "number"
1007
+ },
1008
+ "body": {
1009
+ "type": "string"
1010
+ }
1011
+ },
1012
+ "additionalProperties": false
1013
+ }
1014
+ },
1015
+ "additionalProperties": false
1016
+ }
1017
+ ]
1018
+ },
1019
+ "plugins": {
1020
+ "type": "array",
1021
+ "items": {
1022
+ "anyOf": [
1023
+ {
1024
+ "type": "string",
1025
+ "resolvePath": true
1026
+ }
1027
+ ]
1028
+ }
1029
+ }
1030
+ },
1031
+ "additionalProperties": false
1032
+ }
1033
+ ]
1034
+ },
1035
+ "telemetry": {
1036
+ "type": "object",
1037
+ "properties": {
1038
+ "enabled": {
1039
+ "anyOf": [
1040
+ {
1041
+ "type": "boolean"
1042
+ },
1043
+ {
1044
+ "type": "string"
1045
+ }
1046
+ ]
1047
+ },
1048
+ "applicationName": {
1049
+ "type": "string",
1050
+ "description": "The name of the application. Defaults to the folder name if not specified."
1051
+ },
1052
+ "version": {
1053
+ "type": "string",
1054
+ "description": "The version of the application (optional)"
1055
+ },
1056
+ "skip": {
1057
+ "type": "array",
1058
+ "description": "An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.",
1059
+ "items": {
1060
+ "type": "object",
1061
+ "properties": {
1062
+ "path": {
1063
+ "type": "string",
1064
+ "description": "The path to skip. Can be a string or a regex."
1065
+ },
1066
+ "method": {
1067
+ "description": "HTTP method to skip",
1068
+ "type": "string",
1069
+ "enum": [
1070
+ "GET",
1071
+ "POST",
1072
+ "PUT",
1073
+ "DELETE",
1074
+ "PATCH",
1075
+ "HEAD",
1076
+ "OPTIONS"
1077
+ ]
1078
+ }
1079
+ }
1080
+ }
1081
+ },
1082
+ "exporter": {
1083
+ "anyOf": [
1084
+ {
1085
+ "type": "array",
1086
+ "items": {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "type": {
1090
+ "type": "string",
1091
+ "enum": [
1092
+ "console",
1093
+ "otlp",
1094
+ "zipkin",
1095
+ "memory",
1096
+ "file"
1097
+ ],
1098
+ "default": "console"
1099
+ },
1100
+ "options": {
1101
+ "type": "object",
1102
+ "description": "Options for the exporter. These are passed directly to the exporter.",
1103
+ "properties": {
1104
+ "url": {
1105
+ "type": "string",
1106
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
1107
+ },
1108
+ "headers": {
1109
+ "type": "object",
1110
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
1111
+ },
1112
+ "path": {
1113
+ "type": "string",
1114
+ "description": "The path to write the traces to. Only for file exporter."
1115
+ }
1116
+ }
1117
+ },
1118
+ "additionalProperties": false
1119
+ }
1120
+ }
1121
+ },
1122
+ {
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "type": {
1126
+ "type": "string",
1127
+ "enum": [
1128
+ "console",
1129
+ "otlp",
1130
+ "zipkin",
1131
+ "memory",
1132
+ "file"
1133
+ ],
1134
+ "default": "console"
1135
+ },
1136
+ "options": {
1137
+ "type": "object",
1138
+ "description": "Options for the exporter. These are passed directly to the exporter.",
1139
+ "properties": {
1140
+ "url": {
1141
+ "type": "string",
1142
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
1143
+ },
1144
+ "headers": {
1145
+ "type": "object",
1146
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
1147
+ },
1148
+ "path": {
1149
+ "type": "string",
1150
+ "description": "The path to write the traces to. Only for file exporter."
1151
+ }
1152
+ }
1153
+ },
1154
+ "additionalProperties": false
1155
+ }
1156
+ }
1157
+ ]
1158
+ }
1159
+ },
1160
+ "required": [
1161
+ "applicationName"
1162
+ ],
1163
+ "additionalProperties": false
1164
+ },
1165
+ "inspectorOptions": {
1166
+ "type": "object",
1167
+ "properties": {
1168
+ "host": {
1169
+ "type": "string"
1170
+ },
1171
+ "port": {
1172
+ "type": "number"
1173
+ },
1174
+ "breakFirstLine": {
1175
+ "type": "boolean"
1176
+ },
1177
+ "watchDisabled": {
1178
+ "type": "boolean"
1179
+ }
1180
+ }
1181
+ },
1182
+ "applicationTimeout": {
1183
+ "anyOf": [
1184
+ {
1185
+ "type": "number",
1186
+ "minimum": 1
1187
+ },
1188
+ {
1189
+ "type": "string"
1190
+ }
1191
+ ],
1192
+ "default": 300000
1193
+ },
1194
+ "messagingTimeout": {
1195
+ "anyOf": [
1196
+ {
1197
+ "type": "number",
1198
+ "minimum": 1
1199
+ },
1200
+ {
1201
+ "type": "string"
1202
+ }
1203
+ ],
1204
+ "default": 30000
1205
+ },
1206
+ "env": {
1207
+ "type": "object",
1208
+ "additionalProperties": {
1209
+ "type": "string"
1210
+ }
1211
+ },
1212
+ "sourceMaps": {
1213
+ "type": "boolean",
1214
+ "default": false
1215
+ },
1216
+ "scheduler": {
1217
+ "type": "array",
1218
+ "items": {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "enabled": {
1222
+ "anyOf": [
1223
+ {
1224
+ "type": "boolean"
1225
+ },
1226
+ {
1227
+ "type": "string"
1228
+ }
1229
+ ],
1230
+ "default": true
1231
+ },
1232
+ "name": {
1233
+ "type": "string"
1234
+ },
1235
+ "cron": {
1236
+ "type": "string"
1237
+ },
1238
+ "callbackUrl": {
1239
+ "type": "string"
1240
+ },
1241
+ "method": {
1242
+ "type": "string",
1243
+ "enum": [
1244
+ "GET",
1245
+ "POST",
1246
+ "PUT",
1247
+ "PATCH",
1248
+ "DELETE"
1249
+ ],
1250
+ "default": "GET"
1251
+ },
1252
+ "headers": {
1253
+ "type": "object",
1254
+ "additionalProperties": {
1255
+ "type": "string"
1256
+ }
1257
+ },
1258
+ "body": {
1259
+ "anyOf": [
1260
+ {
1261
+ "type": "string"
1262
+ },
1263
+ {
1264
+ "type": "object",
1265
+ "additionalProperties": true
1266
+ }
1267
+ ]
1268
+ },
1269
+ "maxRetries": {
1270
+ "type": "number",
1271
+ "minimum": 0,
1272
+ "default": 3
1273
+ }
1274
+ },
1275
+ "required": [
1276
+ "name",
1277
+ "cron",
1278
+ "callbackUrl"
1279
+ ]
1280
+ }
1281
+ }
1282
+ },
1283
+ "additionalProperties": false
9
1284
  }
10
1285
  },
11
1286
  "additionalProperties": true