@systemfsoftware/stryker-js-cli-contract 0.1.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.
@@ -0,0 +1,1180 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "anyOf": [
4
+ {
5
+ "$ref": "#/definitions/streamEncoded"
6
+ },
7
+ {
8
+ "$ref": "#/definitions/phaseEncoded"
9
+ },
10
+ {
11
+ "$ref": "#/definitions/planEncoded"
12
+ },
13
+ {
14
+ "$ref": "#/definitions/mutantTestedEncoded"
15
+ },
16
+ {
17
+ "$ref": "#/definitions/tickEncoded"
18
+ },
19
+ {
20
+ "$ref": "#/definitions/pluginsEncoded"
21
+ },
22
+ {
23
+ "$ref": "#/definitions/formatsEncoded"
24
+ },
25
+ {
26
+ "$ref": "#/definitions/skippedEncoded"
27
+ },
28
+ {
29
+ "$ref": "#/definitions/reuseEncoded"
30
+ },
31
+ {
32
+ "$ref": "#/definitions/mutant-detailEncoded"
33
+ },
34
+ {
35
+ "$ref": "#/definitions/feedbackEncoded"
36
+ },
37
+ {
38
+ "$ref": "#/definitions/verdictEncoded"
39
+ },
40
+ {
41
+ "$ref": "#/definitions/errorEncoded"
42
+ },
43
+ {
44
+ "$ref": "#/definitions/helpEncoded"
45
+ }
46
+ ],
47
+ "definitions": {
48
+ "streamEncoded": {
49
+ "type": "object",
50
+ "properties": {
51
+ "_tag": {
52
+ "type": "string",
53
+ "enum": [
54
+ "stream"
55
+ ]
56
+ },
57
+ "schemaVersion": {
58
+ "type": "string",
59
+ "enum": [
60
+ "2.0"
61
+ ]
62
+ },
63
+ "runId": {
64
+ "type": "string",
65
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
66
+ },
67
+ "mode": {
68
+ "type": "string",
69
+ "enum": [
70
+ "human",
71
+ "machine"
72
+ ]
73
+ },
74
+ "signal": {
75
+ "type": "string",
76
+ "enum": [
77
+ "flag",
78
+ "env",
79
+ "tty",
80
+ "agent",
81
+ "tool"
82
+ ]
83
+ }
84
+ },
85
+ "required": [
86
+ "_tag",
87
+ "schemaVersion",
88
+ "runId",
89
+ "mode",
90
+ "signal"
91
+ ],
92
+ "additionalProperties": true
93
+ },
94
+ "phaseEncoded": {
95
+ "type": "object",
96
+ "properties": {
97
+ "_tag": {
98
+ "type": "string",
99
+ "enum": [
100
+ "phase"
101
+ ]
102
+ },
103
+ "phase": {
104
+ "type": "string",
105
+ "enum": [
106
+ "prepare",
107
+ "instrument",
108
+ "dry-run",
109
+ "mutation-test"
110
+ ]
111
+ },
112
+ "elapsedMs": {
113
+ "type": "number",
114
+ "minimum": 0
115
+ }
116
+ },
117
+ "required": [
118
+ "_tag",
119
+ "phase",
120
+ "elapsedMs"
121
+ ],
122
+ "additionalProperties": true
123
+ },
124
+ "planEncoded": {
125
+ "type": "object",
126
+ "properties": {
127
+ "_tag": {
128
+ "type": "string",
129
+ "enum": [
130
+ "plan"
131
+ ]
132
+ },
133
+ "total": {
134
+ "type": "integer",
135
+ "minimum": 0
136
+ }
137
+ },
138
+ "required": [
139
+ "_tag",
140
+ "total"
141
+ ],
142
+ "additionalProperties": true
143
+ },
144
+ "mutantTestedEncoded": {
145
+ "type": "object",
146
+ "properties": {
147
+ "_tag": {
148
+ "type": "string",
149
+ "enum": [
150
+ "mutant"
151
+ ]
152
+ },
153
+ "id": {
154
+ "type": "string",
155
+ "pattern": "^[0-9a-f]{16}$"
156
+ },
157
+ "status": {
158
+ "type": "string",
159
+ "enum": [
160
+ "Killed",
161
+ "Survived",
162
+ "NoCoverage",
163
+ "CompileError",
164
+ "RuntimeError",
165
+ "Timeout",
166
+ "Ignored",
167
+ "Pending"
168
+ ]
169
+ },
170
+ "file": {
171
+ "type": "string",
172
+ "pattern": "^[^\\\\]+$"
173
+ },
174
+ "location": {
175
+ "type": "object",
176
+ "properties": {
177
+ "start": {
178
+ "type": "object",
179
+ "properties": {
180
+ "line": {
181
+ "type": "integer",
182
+ "minimum": 1
183
+ },
184
+ "column": {
185
+ "type": "integer",
186
+ "minimum": 1
187
+ }
188
+ },
189
+ "required": [
190
+ "line",
191
+ "column"
192
+ ],
193
+ "additionalProperties": true
194
+ },
195
+ "end": {
196
+ "type": "object",
197
+ "properties": {
198
+ "line": {
199
+ "type": "integer",
200
+ "minimum": 1
201
+ },
202
+ "column": {
203
+ "type": "integer",
204
+ "minimum": 1
205
+ }
206
+ },
207
+ "required": [
208
+ "line",
209
+ "column"
210
+ ],
211
+ "additionalProperties": true
212
+ }
213
+ },
214
+ "required": [
215
+ "start",
216
+ "end"
217
+ ],
218
+ "additionalProperties": true
219
+ },
220
+ "mutator": {
221
+ "type": "string",
222
+ "pattern": "^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*\\/)?[A-Z][A-Za-z0-9]*$"
223
+ },
224
+ "replacement": {
225
+ "anyOf": [
226
+ {
227
+ "type": "string"
228
+ },
229
+ {
230
+ "type": "null"
231
+ }
232
+ ]
233
+ },
234
+ "completed": {
235
+ "type": "integer",
236
+ "minimum": 0
237
+ },
238
+ "total": {
239
+ "type": "integer",
240
+ "minimum": 0
241
+ },
242
+ "static": {
243
+ "type": "boolean"
244
+ },
245
+ "cost": {
246
+ "anyOf": [
247
+ {
248
+ "type": "object",
249
+ "properties": {
250
+ "fixedOverheadMs": {
251
+ "type": "number",
252
+ "minimum": 0
253
+ },
254
+ "testBodyMs": {
255
+ "type": "number",
256
+ "minimum": 0
257
+ },
258
+ "testsExecuted": {
259
+ "type": "integer",
260
+ "minimum": 0
261
+ },
262
+ "shared": {
263
+ "type": "boolean"
264
+ }
265
+ },
266
+ "required": [
267
+ "fixedOverheadMs",
268
+ "testBodyMs",
269
+ "testsExecuted",
270
+ "shared"
271
+ ],
272
+ "additionalProperties": true
273
+ },
274
+ {
275
+ "type": "null"
276
+ }
277
+ ]
278
+ }
279
+ },
280
+ "required": [
281
+ "_tag",
282
+ "id",
283
+ "status",
284
+ "file",
285
+ "location",
286
+ "mutator",
287
+ "replacement",
288
+ "completed",
289
+ "total",
290
+ "static",
291
+ "cost"
292
+ ],
293
+ "additionalProperties": true
294
+ },
295
+ "tickEncoded": {
296
+ "type": "object",
297
+ "properties": {
298
+ "_tag": {
299
+ "type": "string",
300
+ "enum": [
301
+ "tick"
302
+ ]
303
+ },
304
+ "elapsedMs": {
305
+ "type": "number",
306
+ "minimum": 0
307
+ },
308
+ "completed": {
309
+ "type": "integer",
310
+ "minimum": 0
311
+ },
312
+ "total": {
313
+ "anyOf": [
314
+ {
315
+ "type": "integer",
316
+ "minimum": 0
317
+ },
318
+ {
319
+ "type": "null"
320
+ }
321
+ ]
322
+ }
323
+ },
324
+ "required": [
325
+ "_tag",
326
+ "elapsedMs",
327
+ "completed",
328
+ "total"
329
+ ],
330
+ "additionalProperties": true
331
+ },
332
+ "pluginsEncoded": {
333
+ "type": "object",
334
+ "properties": {
335
+ "_tag": {
336
+ "type": "string",
337
+ "enum": [
338
+ "plugins"
339
+ ]
340
+ },
341
+ "modules": {
342
+ "type": "array",
343
+ "items": {
344
+ "type": "object",
345
+ "properties": {
346
+ "moduleName": {
347
+ "type": "string"
348
+ },
349
+ "contributions": {
350
+ "type": "array",
351
+ "items": {
352
+ "type": "object",
353
+ "properties": {
354
+ "name": {
355
+ "type": "string"
356
+ },
357
+ "formatId": {
358
+ "type": "string"
359
+ },
360
+ "extensions": {
361
+ "type": "array",
362
+ "items": {
363
+ "type": "string"
364
+ }
365
+ }
366
+ },
367
+ "required": [
368
+ "name",
369
+ "formatId",
370
+ "extensions"
371
+ ],
372
+ "additionalProperties": true
373
+ }
374
+ }
375
+ },
376
+ "required": [
377
+ "moduleName",
378
+ "contributions"
379
+ ],
380
+ "additionalProperties": true
381
+ }
382
+ },
383
+ "shadowings": {
384
+ "type": "array",
385
+ "items": {
386
+ "type": "object",
387
+ "properties": {
388
+ "extension": {
389
+ "type": "string"
390
+ },
391
+ "winner": {
392
+ "type": "string"
393
+ },
394
+ "loser": {
395
+ "type": "string"
396
+ }
397
+ },
398
+ "required": [
399
+ "extension",
400
+ "winner",
401
+ "loser"
402
+ ],
403
+ "additionalProperties": true
404
+ }
405
+ }
406
+ },
407
+ "required": [
408
+ "_tag",
409
+ "modules",
410
+ "shadowings"
411
+ ],
412
+ "additionalProperties": true
413
+ },
414
+ "formatsEncoded": {
415
+ "type": "object",
416
+ "properties": {
417
+ "_tag": {
418
+ "type": "string",
419
+ "enum": [
420
+ "formats"
421
+ ]
422
+ },
423
+ "rows": {
424
+ "type": "array",
425
+ "items": {
426
+ "type": "object",
427
+ "properties": {
428
+ "extension": {
429
+ "type": "string"
430
+ },
431
+ "formatId": {
432
+ "type": "string"
433
+ },
434
+ "ownerModule": {
435
+ "type": "string"
436
+ },
437
+ "language": {
438
+ "type": "string"
439
+ }
440
+ },
441
+ "required": [
442
+ "extension",
443
+ "formatId",
444
+ "ownerModule",
445
+ "language"
446
+ ],
447
+ "additionalProperties": true
448
+ }
449
+ }
450
+ },
451
+ "required": [
452
+ "_tag",
453
+ "rows"
454
+ ],
455
+ "additionalProperties": true
456
+ },
457
+ "skippedEncoded": {
458
+ "type": "object",
459
+ "properties": {
460
+ "_tag": {
461
+ "type": "string",
462
+ "enum": [
463
+ "skipped"
464
+ ]
465
+ },
466
+ "files": {
467
+ "type": "array",
468
+ "items": {
469
+ "type": "object",
470
+ "properties": {
471
+ "file": {
472
+ "type": "string"
473
+ },
474
+ "extension": {
475
+ "type": "string"
476
+ },
477
+ "reason": {
478
+ "type": "string"
479
+ }
480
+ },
481
+ "required": [
482
+ "file",
483
+ "extension",
484
+ "reason"
485
+ ],
486
+ "additionalProperties": true
487
+ }
488
+ }
489
+ },
490
+ "required": [
491
+ "_tag",
492
+ "files"
493
+ ],
494
+ "additionalProperties": true
495
+ },
496
+ "reuseEncoded": {
497
+ "type": "object",
498
+ "properties": {
499
+ "_tag": {
500
+ "type": "string",
501
+ "enum": [
502
+ "reuse"
503
+ ]
504
+ },
505
+ "reused": {
506
+ "type": "integer",
507
+ "minimum": 0
508
+ },
509
+ "ran": {
510
+ "type": "integer",
511
+ "minimum": 0
512
+ },
513
+ "refused": {
514
+ "type": "object",
515
+ "properties": {
516
+ "semanticsChanged": {
517
+ "type": "integer",
518
+ "minimum": 0
519
+ },
520
+ "policyChanged": {
521
+ "type": "integer",
522
+ "minimum": 0
523
+ },
524
+ "runInputsChanged": {
525
+ "type": "integer",
526
+ "minimum": 0
527
+ },
528
+ "closureChanged": {
529
+ "type": "integer",
530
+ "minimum": 0
531
+ },
532
+ "timeoutUnreproduced": {
533
+ "type": "integer",
534
+ "minimum": 0
535
+ },
536
+ "flakyDependency": {
537
+ "type": "integer",
538
+ "minimum": 0
539
+ },
540
+ "noPriorRecord": {
541
+ "type": "integer",
542
+ "minimum": 0
543
+ }
544
+ },
545
+ "required": [
546
+ "semanticsChanged",
547
+ "policyChanged",
548
+ "runInputsChanged",
549
+ "closureChanged",
550
+ "timeoutUnreproduced",
551
+ "flakyDependency",
552
+ "noPriorRecord"
553
+ ],
554
+ "additionalProperties": true
555
+ }
556
+ },
557
+ "required": [
558
+ "_tag",
559
+ "reused",
560
+ "ran",
561
+ "refused"
562
+ ],
563
+ "additionalProperties": true
564
+ },
565
+ "mutant-detailEncoded": {
566
+ "type": "object",
567
+ "properties": {
568
+ "_tag": {
569
+ "type": "string",
570
+ "enum": [
571
+ "mutant-detail"
572
+ ]
573
+ },
574
+ "id": {
575
+ "type": "string",
576
+ "pattern": "^[0-9a-f]{16}$"
577
+ },
578
+ "status": {
579
+ "type": "string",
580
+ "enum": [
581
+ "Killed",
582
+ "Survived",
583
+ "NoCoverage",
584
+ "CompileError",
585
+ "RuntimeError",
586
+ "Timeout",
587
+ "Ignored",
588
+ "Pending"
589
+ ]
590
+ },
591
+ "coveringTests": {
592
+ "type": "array",
593
+ "items": {
594
+ "type": "string"
595
+ }
596
+ },
597
+ "killedBy": {
598
+ "anyOf": [
599
+ {
600
+ "type": "string"
601
+ },
602
+ {
603
+ "type": "null"
604
+ }
605
+ ]
606
+ },
607
+ "reproducer": {
608
+ "anyOf": [
609
+ {
610
+ "type": "string"
611
+ },
612
+ {
613
+ "type": "null"
614
+ }
615
+ ]
616
+ }
617
+ },
618
+ "required": [
619
+ "_tag",
620
+ "id",
621
+ "status",
622
+ "coveringTests",
623
+ "killedBy",
624
+ "reproducer"
625
+ ],
626
+ "additionalProperties": true
627
+ },
628
+ "feedbackEncoded": {
629
+ "type": "object",
630
+ "properties": {
631
+ "_tag": {
632
+ "type": "string",
633
+ "enum": [
634
+ "feedback"
635
+ ]
636
+ },
637
+ "id": {
638
+ "type": "string",
639
+ "pattern": "^[0-9a-f]{16}$"
640
+ },
641
+ "judgment": {
642
+ "type": "string",
643
+ "enum": [
644
+ "useful",
645
+ "not-useful"
646
+ ]
647
+ },
648
+ "reason": {
649
+ "anyOf": [
650
+ {
651
+ "type": "string"
652
+ },
653
+ {
654
+ "type": "null"
655
+ }
656
+ ]
657
+ }
658
+ },
659
+ "required": [
660
+ "_tag",
661
+ "id",
662
+ "judgment",
663
+ "reason"
664
+ ],
665
+ "additionalProperties": true
666
+ },
667
+ "MetricsEncoded": {
668
+ "type": "object",
669
+ "properties": {
670
+ "pending": {
671
+ "type": "integer",
672
+ "minimum": 0
673
+ },
674
+ "killed": {
675
+ "type": "integer",
676
+ "minimum": 0
677
+ },
678
+ "timeout": {
679
+ "type": "integer",
680
+ "minimum": 0
681
+ },
682
+ "survived": {
683
+ "type": "integer",
684
+ "minimum": 0
685
+ },
686
+ "noCoverage": {
687
+ "type": "integer",
688
+ "minimum": 0
689
+ },
690
+ "runtimeErrors": {
691
+ "type": "integer",
692
+ "minimum": 0
693
+ },
694
+ "compileErrors": {
695
+ "type": "integer",
696
+ "minimum": 0
697
+ },
698
+ "ignored": {
699
+ "type": "integer",
700
+ "minimum": 0
701
+ }
702
+ },
703
+ "required": [
704
+ "pending",
705
+ "killed",
706
+ "timeout",
707
+ "survived",
708
+ "noCoverage",
709
+ "runtimeErrors",
710
+ "compileErrors",
711
+ "ignored"
712
+ ],
713
+ "additionalProperties": true
714
+ },
715
+ "verdictEncoded": {
716
+ "type": "object",
717
+ "properties": {
718
+ "_tag": {
719
+ "type": "string",
720
+ "enum": [
721
+ "verdict"
722
+ ]
723
+ },
724
+ "schemaVersion": {
725
+ "type": "string",
726
+ "enum": [
727
+ "2.0"
728
+ ]
729
+ },
730
+ "runId": {
731
+ "type": "string",
732
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
733
+ },
734
+ "mode": {
735
+ "type": "string",
736
+ "enum": [
737
+ "human",
738
+ "machine"
739
+ ]
740
+ },
741
+ "signal": {
742
+ "type": "string",
743
+ "enum": [
744
+ "flag",
745
+ "env",
746
+ "tty",
747
+ "agent",
748
+ "tool"
749
+ ]
750
+ },
751
+ "score": {
752
+ "anyOf": [
753
+ {
754
+ "type": "number",
755
+ "minimum": 0,
756
+ "maximum": 100
757
+ },
758
+ {
759
+ "type": "null"
760
+ }
761
+ ]
762
+ },
763
+ "thresholds": {
764
+ "type": "object",
765
+ "properties": {
766
+ "high": {
767
+ "type": "number",
768
+ "minimum": 0,
769
+ "maximum": 100
770
+ },
771
+ "low": {
772
+ "type": "number",
773
+ "minimum": 0,
774
+ "maximum": 100
775
+ },
776
+ "break": {
777
+ "anyOf": [
778
+ {
779
+ "type": "number",
780
+ "minimum": 0,
781
+ "maximum": 100
782
+ },
783
+ {
784
+ "type": "null"
785
+ }
786
+ ]
787
+ }
788
+ },
789
+ "required": [
790
+ "high",
791
+ "low",
792
+ "break"
793
+ ],
794
+ "additionalProperties": true
795
+ },
796
+ "reportFile": {
797
+ "anyOf": [
798
+ {
799
+ "type": "string"
800
+ },
801
+ {
802
+ "type": "null"
803
+ }
804
+ ]
805
+ },
806
+ "counts": {
807
+ "$ref": "#/definitions/MetricsEncoded"
808
+ },
809
+ "mutants": {
810
+ "type": "array",
811
+ "items": {
812
+ "type": "object",
813
+ "properties": {
814
+ "id": {
815
+ "type": "string"
816
+ },
817
+ "file": {
818
+ "type": "string"
819
+ },
820
+ "location": {
821
+ "type": "object",
822
+ "properties": {
823
+ "start": {
824
+ "type": "object",
825
+ "properties": {
826
+ "line": {
827
+ "type": "integer",
828
+ "minimum": 1
829
+ },
830
+ "column": {
831
+ "type": "integer",
832
+ "minimum": 1
833
+ }
834
+ },
835
+ "required": [
836
+ "line",
837
+ "column"
838
+ ],
839
+ "additionalProperties": true
840
+ },
841
+ "end": {
842
+ "type": "object",
843
+ "properties": {
844
+ "line": {
845
+ "type": "integer",
846
+ "minimum": 1
847
+ },
848
+ "column": {
849
+ "type": "integer",
850
+ "minimum": 1
851
+ }
852
+ },
853
+ "required": [
854
+ "line",
855
+ "column"
856
+ ],
857
+ "additionalProperties": true
858
+ }
859
+ },
860
+ "required": [
861
+ "start",
862
+ "end"
863
+ ],
864
+ "additionalProperties": true
865
+ },
866
+ "mutator": {
867
+ "type": "string"
868
+ },
869
+ "replacement": {
870
+ "anyOf": [
871
+ {
872
+ "type": "string"
873
+ },
874
+ {
875
+ "type": "null"
876
+ }
877
+ ]
878
+ },
879
+ "status": {
880
+ "type": "string",
881
+ "enum": [
882
+ "Killed",
883
+ "Survived",
884
+ "NoCoverage",
885
+ "CompileError",
886
+ "RuntimeError",
887
+ "Timeout",
888
+ "Ignored",
889
+ "Pending"
890
+ ]
891
+ }
892
+ },
893
+ "required": [
894
+ "id",
895
+ "file",
896
+ "location",
897
+ "mutator",
898
+ "replacement",
899
+ "status"
900
+ ],
901
+ "additionalProperties": true
902
+ }
903
+ },
904
+ "scope": {
905
+ "type": "string",
906
+ "enum": [
907
+ "full",
908
+ "diff"
909
+ ]
910
+ },
911
+ "mutantSetPolicy": {
912
+ "type": "string",
913
+ "enum": [
914
+ "default",
915
+ "full"
916
+ ]
917
+ },
918
+ "phaseDurations": {
919
+ "anyOf": [
920
+ {
921
+ "type": "object",
922
+ "properties": {
923
+ "prepare": {
924
+ "type": "number",
925
+ "minimum": 0
926
+ },
927
+ "instrument": {
928
+ "type": "number",
929
+ "minimum": 0
930
+ },
931
+ "dry-run": {
932
+ "type": "number",
933
+ "minimum": 0
934
+ },
935
+ "mutation-test": {
936
+ "type": "number",
937
+ "minimum": 0
938
+ }
939
+ },
940
+ "required": [
941
+ "prepare",
942
+ "instrument",
943
+ "dry-run",
944
+ "mutation-test"
945
+ ],
946
+ "additionalProperties": true
947
+ },
948
+ {
949
+ "type": "null"
950
+ }
951
+ ]
952
+ },
953
+ "static": {
954
+ "anyOf": [
955
+ {
956
+ "type": "object",
957
+ "properties": {
958
+ "count": {
959
+ "type": "integer",
960
+ "minimum": 0
961
+ },
962
+ "costMs": {
963
+ "type": "number",
964
+ "minimum": 0
965
+ }
966
+ },
967
+ "required": [
968
+ "count",
969
+ "costMs"
970
+ ],
971
+ "additionalProperties": true
972
+ },
973
+ {
974
+ "type": "null"
975
+ }
976
+ ]
977
+ }
978
+ },
979
+ "required": [
980
+ "_tag",
981
+ "schemaVersion",
982
+ "runId",
983
+ "mode",
984
+ "signal",
985
+ "score",
986
+ "thresholds",
987
+ "reportFile",
988
+ "counts",
989
+ "mutants",
990
+ "scope",
991
+ "mutantSetPolicy",
992
+ "phaseDurations",
993
+ "static"
994
+ ],
995
+ "additionalProperties": true
996
+ },
997
+ "errorEncoded": {
998
+ "type": "object",
999
+ "properties": {
1000
+ "_tag": {
1001
+ "type": "string",
1002
+ "enum": [
1003
+ "error"
1004
+ ]
1005
+ },
1006
+ "schemaVersion": {
1007
+ "type": "string",
1008
+ "enum": [
1009
+ "2.0"
1010
+ ]
1011
+ },
1012
+ "code": {
1013
+ "type": "integer",
1014
+ "minimum": 0,
1015
+ "maximum": 255
1016
+ },
1017
+ "error": {
1018
+ "type": "string"
1019
+ },
1020
+ "remediation": {
1021
+ "type": "string"
1022
+ },
1023
+ "reason": {
1024
+ "anyOf": [
1025
+ {
1026
+ "anyOf": [
1027
+ {
1028
+ "type": "object",
1029
+ "properties": {
1030
+ "_tag": {
1031
+ "type": "string",
1032
+ "enum": [
1033
+ "PeerMissing"
1034
+ ]
1035
+ },
1036
+ "peer": {
1037
+ "type": "string"
1038
+ }
1039
+ },
1040
+ "required": [
1041
+ "_tag",
1042
+ "peer"
1043
+ ],
1044
+ "additionalProperties": true
1045
+ },
1046
+ {
1047
+ "type": "object",
1048
+ "properties": {
1049
+ "_tag": {
1050
+ "type": "string",
1051
+ "enum": [
1052
+ "PeerVersionUnsupported"
1053
+ ]
1054
+ },
1055
+ "peer": {
1056
+ "type": "string"
1057
+ },
1058
+ "detail": {
1059
+ "type": "string"
1060
+ }
1061
+ },
1062
+ "required": [
1063
+ "_tag",
1064
+ "peer",
1065
+ "detail"
1066
+ ],
1067
+ "additionalProperties": true
1068
+ },
1069
+ {
1070
+ "type": "object",
1071
+ "properties": {
1072
+ "_tag": {
1073
+ "type": "string",
1074
+ "enum": [
1075
+ "PeerUnrecognized"
1076
+ ]
1077
+ },
1078
+ "peer": {
1079
+ "type": "string"
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "_tag",
1084
+ "peer"
1085
+ ],
1086
+ "additionalProperties": true
1087
+ },
1088
+ {
1089
+ "type": "object",
1090
+ "properties": {
1091
+ "_tag": {
1092
+ "type": "string",
1093
+ "enum": [
1094
+ "InvalidContribution"
1095
+ ]
1096
+ },
1097
+ "detail": {
1098
+ "type": "string"
1099
+ }
1100
+ },
1101
+ "required": [
1102
+ "_tag",
1103
+ "detail"
1104
+ ],
1105
+ "additionalProperties": true
1106
+ },
1107
+ {
1108
+ "type": "object",
1109
+ "properties": {
1110
+ "_tag": {
1111
+ "type": "string",
1112
+ "enum": [
1113
+ "ImportFailed"
1114
+ ]
1115
+ },
1116
+ "cause": {}
1117
+ },
1118
+ "required": [
1119
+ "_tag",
1120
+ "cause"
1121
+ ],
1122
+ "additionalProperties": true
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ "type": "null"
1128
+ }
1129
+ ]
1130
+ }
1131
+ },
1132
+ "required": [
1133
+ "_tag",
1134
+ "schemaVersion",
1135
+ "code",
1136
+ "error",
1137
+ "remediation",
1138
+ "reason"
1139
+ ],
1140
+ "additionalProperties": true
1141
+ },
1142
+ "helpEncoded": {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "_tag": {
1146
+ "type": "string",
1147
+ "enum": [
1148
+ "help"
1149
+ ]
1150
+ },
1151
+ "schemaVersion": {
1152
+ "type": "string",
1153
+ "enum": [
1154
+ "2.0"
1155
+ ]
1156
+ },
1157
+ "code": {
1158
+ "anyOf": [
1159
+ {
1160
+ "type": "number",
1161
+ "enum": [
1162
+ 0
1163
+ ]
1164
+ }
1165
+ ]
1166
+ },
1167
+ "help": {
1168
+ "type": "string"
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "_tag",
1173
+ "schemaVersion",
1174
+ "code",
1175
+ "help"
1176
+ ],
1177
+ "additionalProperties": true
1178
+ }
1179
+ }
1180
+ }