@goodbones/core 0.1.0-beta.1 → 0.1.0-beta.3

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 (43) hide show
  1. package/build/dts/domain/manifest-location.d.ts +9 -0
  2. package/build/dts/domain/manifest-location.d.ts.map +1 -0
  3. package/build/dts/index.d.ts +6 -2
  4. package/build/dts/index.d.ts.map +1 -1
  5. package/build/dts/infrastructure/manifest-file.d.ts +11 -2
  6. package/build/dts/infrastructure/manifest-file.d.ts.map +1 -1
  7. package/build/dts/infrastructure/manifest-include.d.ts +16 -0
  8. package/build/dts/infrastructure/manifest-include.d.ts.map +1 -0
  9. package/build/dts/load/policy.d.ts +2 -0
  10. package/build/dts/load/policy.d.ts.map +1 -1
  11. package/build/dts/manifest/expand.d.ts +26 -0
  12. package/build/dts/manifest/expand.d.ts.map +1 -0
  13. package/build/dts/manifest/json-schema.d.ts +10 -0
  14. package/build/dts/manifest/json-schema.d.ts.map +1 -0
  15. package/build/dts/manifest/manifest.d.ts +5 -1
  16. package/build/dts/manifest/manifest.d.ts.map +1 -1
  17. package/build/esm/domain/manifest-location.js +21 -0
  18. package/build/esm/domain/manifest-location.js.map +1 -0
  19. package/build/esm/index.js +5 -1
  20. package/build/esm/index.js.map +1 -1
  21. package/build/esm/infrastructure/manifest-file.js +158 -7
  22. package/build/esm/infrastructure/manifest-file.js.map +1 -1
  23. package/build/esm/infrastructure/manifest-include.js +187 -0
  24. package/build/esm/infrastructure/manifest-include.js.map +1 -0
  25. package/build/esm/load/policy.js +1 -1
  26. package/build/esm/load/policy.js.map +1 -1
  27. package/build/esm/manifest/expand.js +111 -0
  28. package/build/esm/manifest/expand.js.map +1 -0
  29. package/build/esm/manifest/json-schema.js +131 -0
  30. package/build/esm/manifest/json-schema.js.map +1 -0
  31. package/build/esm/manifest/manifest.js +58 -4
  32. package/build/esm/manifest/manifest.js.map +1 -1
  33. package/package.json +7 -3
  34. package/schema/architecture-node.schema.json +1518 -0
  35. package/schema/architecture.schema.json +1500 -0
  36. package/src/domain/manifest-location.ts +41 -0
  37. package/src/index.ts +34 -1
  38. package/src/infrastructure/manifest-file.ts +204 -8
  39. package/src/infrastructure/manifest-include.ts +318 -0
  40. package/src/load/policy.ts +5 -1
  41. package/src/manifest/expand.ts +174 -0
  42. package/src/manifest/json-schema.ts +164 -0
  43. package/src/manifest/manifest.ts +101 -9
@@ -0,0 +1,1500 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://dataquail.github.io/goodbones/schema/architecture.schema.json",
4
+ "title": "Architecture manifest",
5
+ "description": "One manifest of a repository's architecture, read by @goodbones/cli and @goodbones/oxlint. See https://dataquail.github.io/goodbones/architecture-rules/manifest/.",
6
+ "type": "object",
7
+ "required": [
8
+ "resolve",
9
+ "tree"
10
+ ],
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "$schema": {
14
+ "type": "string",
15
+ "description": "For editors. Ignored by the loader."
16
+ },
17
+ "defs": {
18
+ "type": "object",
19
+ "description": "Named fragments, referenced elsewhere in the manifest as `{ use: \"<name>\" }`. A fragment may itself contain `use`. Every file's `defs` share one namespace.",
20
+ "additionalProperties": true
21
+ },
22
+ "resolve": {
23
+ "anyOf": [
24
+ {
25
+ "$ref": "#/$defs/Use"
26
+ },
27
+ {
28
+ "$ref": "#/$defs/Include"
29
+ },
30
+ {
31
+ "type": "object",
32
+ "properties": {
33
+ "scopes": {
34
+ "anyOf": [
35
+ {
36
+ "$ref": "#/$defs/Include"
37
+ },
38
+ {
39
+ "type": "array",
40
+ "items": {
41
+ "anyOf": [
42
+ {
43
+ "$ref": "#/$defs/Use"
44
+ },
45
+ {
46
+ "$ref": "#/$defs/Include"
47
+ },
48
+ {
49
+ "type": "object",
50
+ "properties": {
51
+ "files": {
52
+ "type": "string"
53
+ },
54
+ "language": {
55
+ "type": "string"
56
+ },
57
+ "options": {}
58
+ },
59
+ "required": [
60
+ "files",
61
+ "language"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ ]
66
+ }
67
+ }
68
+ ]
69
+ },
70
+ "unresolved": {
71
+ "type": "string",
72
+ "enum": [
73
+ "error",
74
+ "off"
75
+ ]
76
+ },
77
+ "ignoreUnresolved": {
78
+ "anyOf": [
79
+ {
80
+ "$ref": "#/$defs/Include"
81
+ },
82
+ {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string"
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "required": [
92
+ "scopes"
93
+ ],
94
+ "additionalProperties": false
95
+ }
96
+ ]
97
+ },
98
+ "baseline": {
99
+ "type": "string"
100
+ },
101
+ "deny": {
102
+ "anyOf": [
103
+ {
104
+ "$ref": "#/$defs/Include"
105
+ },
106
+ {
107
+ "type": "array",
108
+ "items": {
109
+ "anyOf": [
110
+ {
111
+ "$ref": "#/$defs/Use"
112
+ },
113
+ {
114
+ "$ref": "#/$defs/Include"
115
+ },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "match": {
120
+ "anyOf": [
121
+ {
122
+ "type": "string"
123
+ },
124
+ {
125
+ "anyOf": [
126
+ {
127
+ "$ref": "#/$defs/Include"
128
+ },
129
+ {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string"
133
+ }
134
+ }
135
+ ]
136
+ }
137
+ ]
138
+ },
139
+ "matchNot": {
140
+ "anyOf": [
141
+ {
142
+ "type": "string"
143
+ },
144
+ {
145
+ "anyOf": [
146
+ {
147
+ "$ref": "#/$defs/Include"
148
+ },
149
+ {
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string"
153
+ }
154
+ }
155
+ ]
156
+ }
157
+ ]
158
+ },
159
+ "except": {
160
+ "anyOf": [
161
+ {
162
+ "type": "string"
163
+ },
164
+ {
165
+ "anyOf": [
166
+ {
167
+ "$ref": "#/$defs/Include"
168
+ },
169
+ {
170
+ "type": "array",
171
+ "items": {
172
+ "type": "string"
173
+ }
174
+ }
175
+ ]
176
+ }
177
+ ]
178
+ },
179
+ "message": {
180
+ "type": "string"
181
+ }
182
+ },
183
+ "required": [
184
+ "match",
185
+ "message"
186
+ ],
187
+ "additionalProperties": false
188
+ }
189
+ ]
190
+ }
191
+ }
192
+ ]
193
+ },
194
+ "exports": {
195
+ "anyOf": [
196
+ {
197
+ "$ref": "#/$defs/Include"
198
+ },
199
+ {
200
+ "type": "array",
201
+ "items": {
202
+ "anyOf": [
203
+ {
204
+ "$ref": "#/$defs/Use"
205
+ },
206
+ {
207
+ "$ref": "#/$defs/Include"
208
+ },
209
+ {
210
+ "type": "object",
211
+ "properties": {
212
+ "name": {
213
+ "type": "string"
214
+ },
215
+ "message": {
216
+ "type": "string"
217
+ },
218
+ "module": {
219
+ "anyOf": [
220
+ {
221
+ "type": "string"
222
+ },
223
+ {
224
+ "anyOf": [
225
+ {
226
+ "$ref": "#/$defs/Include"
227
+ },
228
+ {
229
+ "type": "array",
230
+ "items": {
231
+ "type": "string"
232
+ }
233
+ }
234
+ ]
235
+ }
236
+ ]
237
+ },
238
+ "symbols": {
239
+ "anyOf": [
240
+ {
241
+ "$ref": "#/$defs/Include"
242
+ },
243
+ {
244
+ "type": "array",
245
+ "items": {
246
+ "type": "string"
247
+ }
248
+ }
249
+ ]
250
+ },
251
+ "kinds": {
252
+ "anyOf": [
253
+ {
254
+ "$ref": "#/$defs/Include"
255
+ },
256
+ {
257
+ "type": "array",
258
+ "items": {
259
+ "type": "string",
260
+ "enum": [
261
+ "named",
262
+ "default",
263
+ "namespace"
264
+ ]
265
+ }
266
+ }
267
+ ]
268
+ },
269
+ "except": {
270
+ "anyOf": [
271
+ {
272
+ "type": "string"
273
+ },
274
+ {
275
+ "anyOf": [
276
+ {
277
+ "$ref": "#/$defs/Include"
278
+ },
279
+ {
280
+ "type": "array",
281
+ "items": {
282
+ "type": "string"
283
+ }
284
+ }
285
+ ]
286
+ }
287
+ ]
288
+ },
289
+ "fix": {
290
+ "type": "string",
291
+ "enum": [
292
+ "subpath-namespace-import"
293
+ ]
294
+ },
295
+ "probe": {
296
+ "anyOf": [
297
+ {
298
+ "$ref": "#/$defs/Use"
299
+ },
300
+ {
301
+ "$ref": "#/$defs/Include"
302
+ },
303
+ {
304
+ "type": "object",
305
+ "properties": {
306
+ "source": {
307
+ "type": "string"
308
+ },
309
+ "symbol": {
310
+ "type": "string"
311
+ }
312
+ },
313
+ "required": [
314
+ "source",
315
+ "symbol"
316
+ ],
317
+ "additionalProperties": false
318
+ }
319
+ ]
320
+ }
321
+ },
322
+ "required": [
323
+ "name",
324
+ "message",
325
+ "module"
326
+ ],
327
+ "additionalProperties": false
328
+ }
329
+ ]
330
+ }
331
+ }
332
+ ]
333
+ },
334
+ "graph": {
335
+ "anyOf": [
336
+ {
337
+ "$ref": "#/$defs/Use"
338
+ },
339
+ {
340
+ "$ref": "#/$defs/Include"
341
+ },
342
+ {
343
+ "type": "object",
344
+ "properties": {
345
+ "cycles": {
346
+ "anyOf": [
347
+ {
348
+ "$ref": "#/$defs/Include"
349
+ },
350
+ {
351
+ "type": "array",
352
+ "items": {
353
+ "anyOf": [
354
+ {
355
+ "$ref": "#/$defs/Use"
356
+ },
357
+ {
358
+ "$ref": "#/$defs/Include"
359
+ },
360
+ {
361
+ "type": "object",
362
+ "properties": {
363
+ "name": {
364
+ "type": "string"
365
+ },
366
+ "message": {
367
+ "type": "string"
368
+ },
369
+ "within": {
370
+ "anyOf": [
371
+ {
372
+ "type": "string"
373
+ },
374
+ {
375
+ "anyOf": [
376
+ {
377
+ "$ref": "#/$defs/Include"
378
+ },
379
+ {
380
+ "type": "array",
381
+ "items": {
382
+ "type": "string"
383
+ }
384
+ }
385
+ ]
386
+ }
387
+ ]
388
+ },
389
+ "withinNot": {
390
+ "anyOf": [
391
+ {
392
+ "type": "string"
393
+ },
394
+ {
395
+ "anyOf": [
396
+ {
397
+ "$ref": "#/$defs/Include"
398
+ },
399
+ {
400
+ "type": "array",
401
+ "items": {
402
+ "type": "string"
403
+ }
404
+ }
405
+ ]
406
+ }
407
+ ]
408
+ }
409
+ },
410
+ "required": [
411
+ "name",
412
+ "message",
413
+ "within"
414
+ ],
415
+ "additionalProperties": false
416
+ }
417
+ ]
418
+ }
419
+ }
420
+ ]
421
+ },
422
+ "orphans": {
423
+ "anyOf": [
424
+ {
425
+ "$ref": "#/$defs/Include"
426
+ },
427
+ {
428
+ "type": "array",
429
+ "items": {
430
+ "anyOf": [
431
+ {
432
+ "$ref": "#/$defs/Use"
433
+ },
434
+ {
435
+ "$ref": "#/$defs/Include"
436
+ },
437
+ {
438
+ "type": "object",
439
+ "properties": {
440
+ "name": {
441
+ "type": "string"
442
+ },
443
+ "message": {
444
+ "type": "string"
445
+ },
446
+ "within": {
447
+ "anyOf": [
448
+ {
449
+ "type": "string"
450
+ },
451
+ {
452
+ "anyOf": [
453
+ {
454
+ "$ref": "#/$defs/Include"
455
+ },
456
+ {
457
+ "type": "array",
458
+ "items": {
459
+ "type": "string"
460
+ }
461
+ }
462
+ ]
463
+ }
464
+ ]
465
+ },
466
+ "withinNot": {
467
+ "anyOf": [
468
+ {
469
+ "type": "string"
470
+ },
471
+ {
472
+ "anyOf": [
473
+ {
474
+ "$ref": "#/$defs/Include"
475
+ },
476
+ {
477
+ "type": "array",
478
+ "items": {
479
+ "type": "string"
480
+ }
481
+ }
482
+ ]
483
+ }
484
+ ]
485
+ },
486
+ "entry": {
487
+ "anyOf": [
488
+ {
489
+ "type": "string"
490
+ },
491
+ {
492
+ "anyOf": [
493
+ {
494
+ "$ref": "#/$defs/Include"
495
+ },
496
+ {
497
+ "type": "array",
498
+ "items": {
499
+ "type": "string"
500
+ }
501
+ }
502
+ ]
503
+ }
504
+ ]
505
+ }
506
+ },
507
+ "required": [
508
+ "name",
509
+ "message",
510
+ "within",
511
+ "entry"
512
+ ],
513
+ "additionalProperties": false
514
+ }
515
+ ]
516
+ }
517
+ }
518
+ ]
519
+ },
520
+ "reach": {
521
+ "anyOf": [
522
+ {
523
+ "$ref": "#/$defs/Include"
524
+ },
525
+ {
526
+ "type": "array",
527
+ "items": {
528
+ "anyOf": [
529
+ {
530
+ "$ref": "#/$defs/Use"
531
+ },
532
+ {
533
+ "$ref": "#/$defs/Include"
534
+ },
535
+ {
536
+ "type": "object",
537
+ "properties": {
538
+ "name": {
539
+ "type": "string"
540
+ },
541
+ "message": {
542
+ "type": "string"
543
+ },
544
+ "from": {
545
+ "anyOf": [
546
+ {
547
+ "type": "string"
548
+ },
549
+ {
550
+ "anyOf": [
551
+ {
552
+ "$ref": "#/$defs/Include"
553
+ },
554
+ {
555
+ "type": "array",
556
+ "items": {
557
+ "type": "string"
558
+ }
559
+ }
560
+ ]
561
+ }
562
+ ]
563
+ },
564
+ "fromNot": {
565
+ "anyOf": [
566
+ {
567
+ "type": "string"
568
+ },
569
+ {
570
+ "anyOf": [
571
+ {
572
+ "$ref": "#/$defs/Include"
573
+ },
574
+ {
575
+ "type": "array",
576
+ "items": {
577
+ "type": "string"
578
+ }
579
+ }
580
+ ]
581
+ }
582
+ ]
583
+ },
584
+ "to": {
585
+ "anyOf": [
586
+ {
587
+ "type": "string"
588
+ },
589
+ {
590
+ "anyOf": [
591
+ {
592
+ "$ref": "#/$defs/Include"
593
+ },
594
+ {
595
+ "type": "array",
596
+ "items": {
597
+ "type": "string"
598
+ }
599
+ }
600
+ ]
601
+ }
602
+ ]
603
+ },
604
+ "toNot": {
605
+ "anyOf": [
606
+ {
607
+ "type": "string"
608
+ },
609
+ {
610
+ "anyOf": [
611
+ {
612
+ "$ref": "#/$defs/Include"
613
+ },
614
+ {
615
+ "type": "array",
616
+ "items": {
617
+ "type": "string"
618
+ }
619
+ }
620
+ ]
621
+ }
622
+ ]
623
+ },
624
+ "via": {
625
+ "anyOf": [
626
+ {
627
+ "type": "string"
628
+ },
629
+ {
630
+ "anyOf": [
631
+ {
632
+ "$ref": "#/$defs/Include"
633
+ },
634
+ {
635
+ "type": "array",
636
+ "items": {
637
+ "type": "string"
638
+ }
639
+ }
640
+ ]
641
+ }
642
+ ]
643
+ }
644
+ },
645
+ "required": [
646
+ "name",
647
+ "message",
648
+ "from",
649
+ "to"
650
+ ],
651
+ "additionalProperties": false
652
+ }
653
+ ]
654
+ }
655
+ }
656
+ ]
657
+ }
658
+ },
659
+ "additionalProperties": false
660
+ }
661
+ ]
662
+ },
663
+ "limits": {
664
+ "anyOf": [
665
+ {
666
+ "$ref": "#/$defs/Use"
667
+ },
668
+ {
669
+ "$ref": "#/$defs/Include"
670
+ },
671
+ {
672
+ "type": "object",
673
+ "properties": {
674
+ "unrestricted": {
675
+ "type": "number"
676
+ },
677
+ "partial": {
678
+ "type": "number"
679
+ },
680
+ "coverage": {
681
+ "anyOf": [
682
+ {
683
+ "$ref": "#/$defs/Use"
684
+ },
685
+ {
686
+ "$ref": "#/$defs/Include"
687
+ },
688
+ {
689
+ "type": "object",
690
+ "properties": {
691
+ "imports": {
692
+ "type": "number"
693
+ },
694
+ "structure": {
695
+ "type": "number"
696
+ },
697
+ "members": {
698
+ "type": "number"
699
+ },
700
+ "surface": {
701
+ "type": "number"
702
+ },
703
+ "graph": {
704
+ "type": "number"
705
+ }
706
+ },
707
+ "additionalProperties": false
708
+ }
709
+ ]
710
+ }
711
+ },
712
+ "additionalProperties": false
713
+ }
714
+ ]
715
+ },
716
+ "aliases": {
717
+ "type": "object",
718
+ "additionalProperties": {
719
+ "type": "string"
720
+ }
721
+ },
722
+ "tree": {
723
+ "type": "object",
724
+ "additionalProperties": {
725
+ "$ref": "#/$defs/ManifestNode"
726
+ }
727
+ }
728
+ },
729
+ "$defs": {
730
+ "ManifestNode": {
731
+ "anyOf": [
732
+ {
733
+ "$ref": "#/$defs/Use"
734
+ },
735
+ {
736
+ "$ref": "#/$defs/Include"
737
+ },
738
+ {
739
+ "type": "object",
740
+ "properties": {
741
+ "message": {
742
+ "type": "string"
743
+ },
744
+ "partial": {
745
+ "type": "boolean"
746
+ },
747
+ "layout": {
748
+ "type": "string",
749
+ "enum": [
750
+ "open"
751
+ ]
752
+ },
753
+ "name": {
754
+ "anyOf": [
755
+ {
756
+ "type": "string",
757
+ "enum": [
758
+ "kebab-case",
759
+ "camelCase",
760
+ "PascalCase",
761
+ "snake_case"
762
+ ]
763
+ },
764
+ {
765
+ "anyOf": [
766
+ {
767
+ "$ref": "#/$defs/Use"
768
+ },
769
+ {
770
+ "$ref": "#/$defs/Include"
771
+ },
772
+ {
773
+ "type": "object",
774
+ "properties": {
775
+ "regex": {
776
+ "type": "string"
777
+ },
778
+ "message": {
779
+ "type": "string"
780
+ }
781
+ },
782
+ "required": [
783
+ "regex"
784
+ ],
785
+ "additionalProperties": false
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "anyOf": [
791
+ {
792
+ "$ref": "#/$defs/Use"
793
+ },
794
+ {
795
+ "$ref": "#/$defs/Include"
796
+ },
797
+ {
798
+ "type": "object",
799
+ "properties": {
800
+ "like": {
801
+ "type": "string"
802
+ },
803
+ "message": {
804
+ "type": "string"
805
+ }
806
+ },
807
+ "required": [
808
+ "like"
809
+ ],
810
+ "additionalProperties": false
811
+ }
812
+ ]
813
+ }
814
+ ]
815
+ },
816
+ "imports": {
817
+ "anyOf": [
818
+ {
819
+ "$ref": "#/$defs/Use"
820
+ },
821
+ {
822
+ "$ref": "#/$defs/Include"
823
+ },
824
+ {
825
+ "type": "object",
826
+ "properties": {
827
+ "message": {
828
+ "type": "string"
829
+ },
830
+ "allow": {
831
+ "anyOf": [
832
+ {
833
+ "type": "string"
834
+ },
835
+ {
836
+ "anyOf": [
837
+ {
838
+ "$ref": "#/$defs/Include"
839
+ },
840
+ {
841
+ "type": "array",
842
+ "items": {
843
+ "type": "string"
844
+ }
845
+ }
846
+ ]
847
+ }
848
+ ]
849
+ },
850
+ "external": {
851
+ "anyOf": [
852
+ {
853
+ "$ref": "#/$defs/Include"
854
+ },
855
+ {
856
+ "type": "array",
857
+ "items": {
858
+ "type": "string"
859
+ }
860
+ }
861
+ ]
862
+ },
863
+ "deny": {
864
+ "anyOf": [
865
+ {
866
+ "$ref": "#/$defs/Include"
867
+ },
868
+ {
869
+ "type": "array",
870
+ "items": {
871
+ "anyOf": [
872
+ {
873
+ "$ref": "#/$defs/Use"
874
+ },
875
+ {
876
+ "$ref": "#/$defs/Include"
877
+ },
878
+ {
879
+ "type": "object",
880
+ "properties": {
881
+ "match": {
882
+ "anyOf": [
883
+ {
884
+ "type": "string"
885
+ },
886
+ {
887
+ "anyOf": [
888
+ {
889
+ "$ref": "#/$defs/Include"
890
+ },
891
+ {
892
+ "type": "array",
893
+ "items": {
894
+ "type": "string"
895
+ }
896
+ }
897
+ ]
898
+ }
899
+ ]
900
+ },
901
+ "matchNot": {
902
+ "anyOf": [
903
+ {
904
+ "type": "string"
905
+ },
906
+ {
907
+ "anyOf": [
908
+ {
909
+ "$ref": "#/$defs/Include"
910
+ },
911
+ {
912
+ "type": "array",
913
+ "items": {
914
+ "type": "string"
915
+ }
916
+ }
917
+ ]
918
+ }
919
+ ]
920
+ },
921
+ "except": {
922
+ "anyOf": [
923
+ {
924
+ "type": "string"
925
+ },
926
+ {
927
+ "anyOf": [
928
+ {
929
+ "$ref": "#/$defs/Include"
930
+ },
931
+ {
932
+ "type": "array",
933
+ "items": {
934
+ "type": "string"
935
+ }
936
+ }
937
+ ]
938
+ }
939
+ ]
940
+ },
941
+ "message": {
942
+ "type": "string"
943
+ }
944
+ },
945
+ "required": [
946
+ "match",
947
+ "message"
948
+ ],
949
+ "additionalProperties": false
950
+ }
951
+ ]
952
+ }
953
+ }
954
+ ]
955
+ },
956
+ "reset": {
957
+ "type": "boolean"
958
+ },
959
+ "unrestricted": {
960
+ "type": "boolean"
961
+ }
962
+ },
963
+ "additionalProperties": false
964
+ }
965
+ ]
966
+ },
967
+ "importedBy": {
968
+ "anyOf": [
969
+ {
970
+ "$ref": "#/$defs/Use"
971
+ },
972
+ {
973
+ "$ref": "#/$defs/Include"
974
+ },
975
+ {
976
+ "type": "object",
977
+ "properties": {
978
+ "message": {
979
+ "type": "string"
980
+ },
981
+ "allow": {
982
+ "anyOf": [
983
+ {
984
+ "type": "string"
985
+ },
986
+ {
987
+ "anyOf": [
988
+ {
989
+ "$ref": "#/$defs/Include"
990
+ },
991
+ {
992
+ "type": "array",
993
+ "items": {
994
+ "type": "string"
995
+ }
996
+ }
997
+ ]
998
+ }
999
+ ]
1000
+ },
1001
+ "matchNot": {
1002
+ "anyOf": [
1003
+ {
1004
+ "type": "string"
1005
+ },
1006
+ {
1007
+ "anyOf": [
1008
+ {
1009
+ "$ref": "#/$defs/Include"
1010
+ },
1011
+ {
1012
+ "type": "array",
1013
+ "items": {
1014
+ "type": "string"
1015
+ }
1016
+ }
1017
+ ]
1018
+ }
1019
+ ]
1020
+ }
1021
+ },
1022
+ "required": [
1023
+ "message",
1024
+ "allow"
1025
+ ],
1026
+ "additionalProperties": false
1027
+ }
1028
+ ]
1029
+ },
1030
+ "members": {
1031
+ "anyOf": [
1032
+ {
1033
+ "$ref": "#/$defs/Include"
1034
+ },
1035
+ {
1036
+ "type": "array",
1037
+ "items": {
1038
+ "anyOf": [
1039
+ {
1040
+ "$ref": "#/$defs/Use"
1041
+ },
1042
+ {
1043
+ "$ref": "#/$defs/Include"
1044
+ },
1045
+ {
1046
+ "type": "object",
1047
+ "properties": {
1048
+ "message": {
1049
+ "type": "string"
1050
+ },
1051
+ "subject": {
1052
+ "type": "string",
1053
+ "enum": [
1054
+ "members",
1055
+ "calls"
1056
+ ]
1057
+ },
1058
+ "in": {
1059
+ "anyOf": [
1060
+ {
1061
+ "type": "string"
1062
+ },
1063
+ {
1064
+ "anyOf": [
1065
+ {
1066
+ "$ref": "#/$defs/Include"
1067
+ },
1068
+ {
1069
+ "type": "array",
1070
+ "items": {
1071
+ "type": "string"
1072
+ }
1073
+ }
1074
+ ]
1075
+ }
1076
+ ]
1077
+ },
1078
+ "declares": {
1079
+ "anyOf": [
1080
+ {
1081
+ "$ref": "#/$defs/Include"
1082
+ },
1083
+ {
1084
+ "type": "array",
1085
+ "items": {
1086
+ "type": "string",
1087
+ "enum": [
1088
+ "function",
1089
+ "class",
1090
+ "variable",
1091
+ "type",
1092
+ "interface",
1093
+ "enum",
1094
+ "expression",
1095
+ "other"
1096
+ ]
1097
+ }
1098
+ }
1099
+ ]
1100
+ },
1101
+ "match": {
1102
+ "anyOf": [
1103
+ {
1104
+ "type": "string"
1105
+ },
1106
+ {
1107
+ "anyOf": [
1108
+ {
1109
+ "$ref": "#/$defs/Include"
1110
+ },
1111
+ {
1112
+ "type": "array",
1113
+ "items": {
1114
+ "type": "string"
1115
+ }
1116
+ }
1117
+ ]
1118
+ }
1119
+ ]
1120
+ },
1121
+ "matchNot": {
1122
+ "anyOf": [
1123
+ {
1124
+ "type": "string"
1125
+ },
1126
+ {
1127
+ "anyOf": [
1128
+ {
1129
+ "$ref": "#/$defs/Include"
1130
+ },
1131
+ {
1132
+ "type": "array",
1133
+ "items": {
1134
+ "type": "string"
1135
+ }
1136
+ }
1137
+ ]
1138
+ }
1139
+ ]
1140
+ },
1141
+ "allow": {
1142
+ "anyOf": [
1143
+ {
1144
+ "type": "string"
1145
+ },
1146
+ {
1147
+ "anyOf": [
1148
+ {
1149
+ "$ref": "#/$defs/Include"
1150
+ },
1151
+ {
1152
+ "type": "array",
1153
+ "items": {
1154
+ "type": "string"
1155
+ }
1156
+ }
1157
+ ]
1158
+ }
1159
+ ]
1160
+ },
1161
+ "probe": {
1162
+ "anyOf": [
1163
+ {
1164
+ "$ref": "#/$defs/Use"
1165
+ },
1166
+ {
1167
+ "$ref": "#/$defs/Include"
1168
+ },
1169
+ {
1170
+ "type": "object",
1171
+ "properties": {
1172
+ "source": {
1173
+ "type": "string"
1174
+ },
1175
+ "name": {
1176
+ "type": "string"
1177
+ }
1178
+ },
1179
+ "required": [
1180
+ "source",
1181
+ "name"
1182
+ ],
1183
+ "additionalProperties": false
1184
+ }
1185
+ ]
1186
+ }
1187
+ },
1188
+ "required": [
1189
+ "message",
1190
+ "subject"
1191
+ ],
1192
+ "additionalProperties": false
1193
+ }
1194
+ ]
1195
+ }
1196
+ }
1197
+ ]
1198
+ },
1199
+ "surface": {
1200
+ "anyOf": [
1201
+ {
1202
+ "$ref": "#/$defs/Include"
1203
+ },
1204
+ {
1205
+ "type": "array",
1206
+ "items": {
1207
+ "anyOf": [
1208
+ {
1209
+ "$ref": "#/$defs/Use"
1210
+ },
1211
+ {
1212
+ "$ref": "#/$defs/Include"
1213
+ },
1214
+ {
1215
+ "type": "object",
1216
+ "properties": {
1217
+ "message": {
1218
+ "type": "string"
1219
+ },
1220
+ "kinds": {
1221
+ "anyOf": [
1222
+ {
1223
+ "$ref": "#/$defs/Include"
1224
+ },
1225
+ {
1226
+ "type": "array",
1227
+ "items": {
1228
+ "type": "string",
1229
+ "enum": [
1230
+ "named",
1231
+ "default",
1232
+ "namespace"
1233
+ ]
1234
+ }
1235
+ }
1236
+ ]
1237
+ },
1238
+ "declares": {
1239
+ "anyOf": [
1240
+ {
1241
+ "$ref": "#/$defs/Include"
1242
+ },
1243
+ {
1244
+ "type": "array",
1245
+ "items": {
1246
+ "type": "string",
1247
+ "enum": [
1248
+ "function",
1249
+ "class",
1250
+ "variable",
1251
+ "type",
1252
+ "interface",
1253
+ "enum",
1254
+ "expression",
1255
+ "other"
1256
+ ]
1257
+ }
1258
+ }
1259
+ ]
1260
+ },
1261
+ "reexport": {
1262
+ "type": "boolean"
1263
+ },
1264
+ "match": {
1265
+ "anyOf": [
1266
+ {
1267
+ "type": "string"
1268
+ },
1269
+ {
1270
+ "anyOf": [
1271
+ {
1272
+ "$ref": "#/$defs/Include"
1273
+ },
1274
+ {
1275
+ "type": "array",
1276
+ "items": {
1277
+ "type": "string"
1278
+ }
1279
+ }
1280
+ ]
1281
+ }
1282
+ ]
1283
+ },
1284
+ "matchNot": {
1285
+ "anyOf": [
1286
+ {
1287
+ "type": "string"
1288
+ },
1289
+ {
1290
+ "anyOf": [
1291
+ {
1292
+ "$ref": "#/$defs/Include"
1293
+ },
1294
+ {
1295
+ "type": "array",
1296
+ "items": {
1297
+ "type": "string"
1298
+ }
1299
+ }
1300
+ ]
1301
+ }
1302
+ ]
1303
+ },
1304
+ "forbid": {
1305
+ "type": "boolean"
1306
+ },
1307
+ "allow": {
1308
+ "anyOf": [
1309
+ {
1310
+ "type": "string"
1311
+ },
1312
+ {
1313
+ "anyOf": [
1314
+ {
1315
+ "$ref": "#/$defs/Include"
1316
+ },
1317
+ {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "type": "string"
1321
+ }
1322
+ }
1323
+ ]
1324
+ }
1325
+ ]
1326
+ },
1327
+ "convention": {
1328
+ "anyOf": [
1329
+ {
1330
+ "type": "string",
1331
+ "enum": [
1332
+ "kebab-case",
1333
+ "camelCase",
1334
+ "PascalCase",
1335
+ "snake_case"
1336
+ ]
1337
+ },
1338
+ {
1339
+ "anyOf": [
1340
+ {
1341
+ "$ref": "#/$defs/Use"
1342
+ },
1343
+ {
1344
+ "$ref": "#/$defs/Include"
1345
+ },
1346
+ {
1347
+ "type": "object",
1348
+ "properties": {
1349
+ "regex": {
1350
+ "type": "string"
1351
+ }
1352
+ },
1353
+ "required": [
1354
+ "regex"
1355
+ ],
1356
+ "additionalProperties": false
1357
+ }
1358
+ ]
1359
+ }
1360
+ ]
1361
+ },
1362
+ "count": {
1363
+ "anyOf": [
1364
+ {
1365
+ "$ref": "#/$defs/Use"
1366
+ },
1367
+ {
1368
+ "$ref": "#/$defs/Include"
1369
+ },
1370
+ {
1371
+ "type": "object",
1372
+ "properties": {
1373
+ "min": {
1374
+ "type": "number"
1375
+ },
1376
+ "max": {
1377
+ "type": "number"
1378
+ }
1379
+ },
1380
+ "additionalProperties": false
1381
+ }
1382
+ ]
1383
+ },
1384
+ "except": {
1385
+ "anyOf": [
1386
+ {
1387
+ "type": "string"
1388
+ },
1389
+ {
1390
+ "anyOf": [
1391
+ {
1392
+ "$ref": "#/$defs/Include"
1393
+ },
1394
+ {
1395
+ "type": "array",
1396
+ "items": {
1397
+ "type": "string"
1398
+ }
1399
+ }
1400
+ ]
1401
+ }
1402
+ ]
1403
+ },
1404
+ "probe": {
1405
+ "anyOf": [
1406
+ {
1407
+ "$ref": "#/$defs/Use"
1408
+ },
1409
+ {
1410
+ "$ref": "#/$defs/Include"
1411
+ },
1412
+ {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "source": {
1416
+ "type": "string"
1417
+ }
1418
+ },
1419
+ "required": [
1420
+ "source"
1421
+ ],
1422
+ "additionalProperties": false
1423
+ }
1424
+ ]
1425
+ }
1426
+ },
1427
+ "required": [
1428
+ "message"
1429
+ ],
1430
+ "additionalProperties": false
1431
+ }
1432
+ ]
1433
+ }
1434
+ }
1435
+ ]
1436
+ },
1437
+ "requires": {
1438
+ "anyOf": [
1439
+ {
1440
+ "$ref": "#/$defs/Include"
1441
+ },
1442
+ {
1443
+ "type": "array",
1444
+ "items": {
1445
+ "type": "string"
1446
+ }
1447
+ }
1448
+ ]
1449
+ },
1450
+ "requiresNot": {
1451
+ "anyOf": [
1452
+ {
1453
+ "$ref": "#/$defs/Include"
1454
+ },
1455
+ {
1456
+ "type": "array",
1457
+ "items": {
1458
+ "type": "string"
1459
+ }
1460
+ }
1461
+ ]
1462
+ },
1463
+ "children": {
1464
+ "type": "object",
1465
+ "additionalProperties": {
1466
+ "$ref": "#/$defs/ManifestNode"
1467
+ }
1468
+ }
1469
+ },
1470
+ "additionalProperties": false
1471
+ }
1472
+ ]
1473
+ },
1474
+ "Use": {
1475
+ "type": "object",
1476
+ "description": "A reference to a fragment under the top-level `defs`. Replaced by a copy of the fragment before the manifest is decoded; any other key written beside `use` overrides the fragment's key of the same name.",
1477
+ "properties": {
1478
+ "use": {
1479
+ "type": "string"
1480
+ }
1481
+ },
1482
+ "required": [
1483
+ "use"
1484
+ ]
1485
+ },
1486
+ "Include": {
1487
+ "type": "object",
1488
+ "description": "A reference to another YAML or JSON file, relative to this one. Replaced by that file's whole value before the manifest is decoded; a list item naming a file that holds a list is spliced in. Nothing may be written beside `include`.",
1489
+ "properties": {
1490
+ "include": {
1491
+ "type": "string"
1492
+ }
1493
+ },
1494
+ "required": [
1495
+ "include"
1496
+ ],
1497
+ "additionalProperties": false
1498
+ }
1499
+ }
1500
+ }