5etools-utils 0.8.22 → 0.8.24

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.9",
3
+ "version": "1.10.10",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -240,7 +240,9 @@
240
240
  "type": "array",
241
241
  "items": {
242
242
  "type": "string"
243
- }
243
+ },
244
+ "minItems": 1,
245
+ "uniqueItems": true
244
246
  }
245
247
  }
246
248
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "items.json",
4
- "version": "1.13.3",
4
+ "version": "1.13.4",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemData": {
@@ -251,6 +251,8 @@
251
251
  },
252
252
  "attachedSpells": {
253
253
  "type": "array",
254
+ "minItems": 1,
255
+ "uniqueItems": true,
254
256
  "items": {
255
257
  "type": "string"
256
258
  }
@@ -802,6 +804,8 @@
802
804
  },
803
805
  "attachedSpells": {
804
806
  "type": "array",
807
+ "minItems": 1,
808
+ "uniqueItems": true,
805
809
  "items": {
806
810
  "type": "string"
807
811
  }
@@ -1356,6 +1360,8 @@
1356
1360
  },
1357
1361
  "attachedSpells": {
1358
1362
  "type": "array",
1363
+ "minItems": 1,
1364
+ "uniqueItems": true,
1359
1365
  "items": {
1360
1366
  "type": "string"
1361
1367
  }
@@ -3,20 +3,24 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.13.20",
6
+ "version": "1.13.21",
7
7
  "$defs": {
8
+ "metaDependenciesArray": {
9
+ "type": "array",
10
+ "items": {
11
+ "type": "string"
12
+ },
13
+ "minItems": 1,
14
+ "uniqueItems": true
15
+ },
8
16
  "metaBlock": {
9
17
  "type": "object",
10
18
  "properties": {
11
19
  "dependencies": {
12
20
  "type": "object",
13
- "properties": {
14
- "monster": {
15
- "type": "array",
16
- "items": {
17
- "type": "string"
18
- },
19
- "uniqueItems": true
21
+ "patternProperties": {
22
+ "^[a-zA-Z]+$": {
23
+ "$ref": "#/$defs/metaDependenciesArray"
20
24
  }
21
25
  }
22
26
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.16",
3
+ "version": "1.21.17",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1111,6 +1111,15 @@
1111
1111
  ]
1112
1112
  }
1113
1113
  },
1114
+ "attachedItems": {
1115
+ "type": "array",
1116
+ "minItems": 1,
1117
+ "uniqueItems": true,
1118
+ "items": {
1119
+ "description": "A UID, e.g. \"longsword|phb\"",
1120
+ "type": "string"
1121
+ }
1122
+ },
1114
1123
  "conditionInflict": {
1115
1124
  "$ref": "../util.json#/$defs/tagsConditions"
1116
1125
  },
@@ -2170,6 +2179,15 @@
2170
2179
  ]
2171
2180
  }
2172
2181
  },
2182
+ "attachedItems": {
2183
+ "type": "array",
2184
+ "minItems": 1,
2185
+ "uniqueItems": true,
2186
+ "items": {
2187
+ "description": "A UID, e.g. \"longsword|phb\"",
2188
+ "type": "string"
2189
+ }
2190
+ },
2173
2191
  "conditionInflict": {
2174
2192
  "$ref": "../util.json#/$defs/tagsConditions"
2175
2193
  },
@@ -3243,6 +3261,15 @@
3243
3261
  ]
3244
3262
  }
3245
3263
  },
3264
+ "attachedItems": {
3265
+ "type": "array",
3266
+ "minItems": 1,
3267
+ "uniqueItems": true,
3268
+ "items": {
3269
+ "description": "A UID, e.g. \"longsword|phb\"",
3270
+ "type": "string"
3271
+ }
3272
+ },
3246
3273
  "conditionInflict": {
3247
3274
  "$ref": "../util.json#/$defs/tagsConditions"
3248
3275
  },
@@ -2212,6 +2212,9 @@
2212
2212
  "type": {
2213
2213
  "const": "statblockInline"
2214
2214
  },
2215
+ "dependencies": {
2216
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2217
+ },
2215
2218
  "dataType": {
2216
2219
  "const": "monster"
2217
2220
  },
@@ -2238,6 +2241,9 @@
2238
2241
  "type": {
2239
2242
  "const": "statblockInline"
2240
2243
  },
2244
+ "dependencies": {
2245
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2246
+ },
2241
2247
  "dataType": {
2242
2248
  "const": "legendaryGroup"
2243
2249
  },
@@ -2264,6 +2270,9 @@
2264
2270
  "type": {
2265
2271
  "const": "statblockInline"
2266
2272
  },
2273
+ "dependencies": {
2274
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2275
+ },
2267
2276
  "dataType": {
2268
2277
  "const": "spell"
2269
2278
  },
@@ -2290,6 +2299,9 @@
2290
2299
  "type": {
2291
2300
  "const": "statblockInline"
2292
2301
  },
2302
+ "dependencies": {
2303
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2304
+ },
2293
2305
  "dataType": {
2294
2306
  "const": "action"
2295
2307
  },
@@ -2316,6 +2328,9 @@
2316
2328
  "type": {
2317
2329
  "const": "statblockInline"
2318
2330
  },
2331
+ "dependencies": {
2332
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2333
+ },
2319
2334
  "dataType": {
2320
2335
  "const": "item"
2321
2336
  },
@@ -2342,6 +2357,9 @@
2342
2357
  "type": {
2343
2358
  "const": "statblockInline"
2344
2359
  },
2360
+ "dependencies": {
2361
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2362
+ },
2345
2363
  "dataType": {
2346
2364
  "const": "background"
2347
2365
  },
@@ -2368,6 +2386,9 @@
2368
2386
  "type": {
2369
2387
  "const": "statblockInline"
2370
2388
  },
2389
+ "dependencies": {
2390
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2391
+ },
2371
2392
  "dataType": {
2372
2393
  "const": "charoption"
2373
2394
  },
@@ -2394,6 +2415,9 @@
2394
2415
  "type": {
2395
2416
  "const": "statblockInline"
2396
2417
  },
2418
+ "dependencies": {
2419
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2420
+ },
2397
2421
  "dataType": {
2398
2422
  "const": "condition"
2399
2423
  },
@@ -2420,6 +2444,9 @@
2420
2444
  "type": {
2421
2445
  "const": "statblockInline"
2422
2446
  },
2447
+ "dependencies": {
2448
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2449
+ },
2423
2450
  "dataType": {
2424
2451
  "const": "disease"
2425
2452
  },
@@ -2446,6 +2473,9 @@
2446
2473
  "type": {
2447
2474
  "const": "statblockInline"
2448
2475
  },
2476
+ "dependencies": {
2477
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2478
+ },
2449
2479
  "dataType": {
2450
2480
  "const": "status"
2451
2481
  },
@@ -2472,6 +2502,9 @@
2472
2502
  "type": {
2473
2503
  "const": "statblockInline"
2474
2504
  },
2505
+ "dependencies": {
2506
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2507
+ },
2475
2508
  "dataType": {
2476
2509
  "const": "cult"
2477
2510
  },
@@ -2498,6 +2531,9 @@
2498
2531
  "type": {
2499
2532
  "const": "statblockInline"
2500
2533
  },
2534
+ "dependencies": {
2535
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2536
+ },
2501
2537
  "dataType": {
2502
2538
  "const": "boon"
2503
2539
  },
@@ -2524,6 +2560,9 @@
2524
2560
  "type": {
2525
2561
  "const": "statblockInline"
2526
2562
  },
2563
+ "dependencies": {
2564
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2565
+ },
2527
2566
  "dataType": {
2528
2567
  "const": "deity"
2529
2568
  },
@@ -2550,6 +2589,9 @@
2550
2589
  "type": {
2551
2590
  "const": "statblockInline"
2552
2591
  },
2592
+ "dependencies": {
2593
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2594
+ },
2553
2595
  "dataType": {
2554
2596
  "const": "feat"
2555
2597
  },
@@ -2576,6 +2618,9 @@
2576
2618
  "type": {
2577
2619
  "const": "statblockInline"
2578
2620
  },
2621
+ "dependencies": {
2622
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2623
+ },
2579
2624
  "dataType": {
2580
2625
  "const": "language"
2581
2626
  },
@@ -2602,6 +2647,9 @@
2602
2647
  "type": {
2603
2648
  "const": "statblockInline"
2604
2649
  },
2650
+ "dependencies": {
2651
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2652
+ },
2605
2653
  "dataType": {
2606
2654
  "const": "object"
2607
2655
  },
@@ -2628,6 +2676,9 @@
2628
2676
  "type": {
2629
2677
  "const": "statblockInline"
2630
2678
  },
2679
+ "dependencies": {
2680
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2681
+ },
2631
2682
  "dataType": {
2632
2683
  "const": "optionalfeature"
2633
2684
  },
@@ -2654,6 +2705,9 @@
2654
2705
  "type": {
2655
2706
  "const": "statblockInline"
2656
2707
  },
2708
+ "dependencies": {
2709
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2710
+ },
2657
2711
  "dataType": {
2658
2712
  "const": "psionic"
2659
2713
  },
@@ -2680,6 +2734,9 @@
2680
2734
  "type": {
2681
2735
  "const": "statblockInline"
2682
2736
  },
2737
+ "dependencies": {
2738
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2739
+ },
2683
2740
  "dataType": {
2684
2741
  "const": "race"
2685
2742
  },
@@ -2706,6 +2763,9 @@
2706
2763
  "type": {
2707
2764
  "const": "statblockInline"
2708
2765
  },
2766
+ "dependencies": {
2767
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2768
+ },
2709
2769
  "dataType": {
2710
2770
  "const": "recipe"
2711
2771
  },
@@ -2732,6 +2792,9 @@
2732
2792
  "type": {
2733
2793
  "const": "statblockInline"
2734
2794
  },
2795
+ "dependencies": {
2796
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2797
+ },
2735
2798
  "dataType": {
2736
2799
  "const": "reward"
2737
2800
  },
@@ -2758,6 +2821,9 @@
2758
2821
  "type": {
2759
2822
  "const": "statblockInline"
2760
2823
  },
2824
+ "dependencies": {
2825
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2826
+ },
2761
2827
  "dataType": {
2762
2828
  "const": "table"
2763
2829
  },
@@ -2784,6 +2850,9 @@
2784
2850
  "type": {
2785
2851
  "const": "statblockInline"
2786
2852
  },
2853
+ "dependencies": {
2854
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2855
+ },
2787
2856
  "dataType": {
2788
2857
  "const": "trap"
2789
2858
  },
@@ -2810,6 +2879,9 @@
2810
2879
  "type": {
2811
2880
  "const": "statblockInline"
2812
2881
  },
2882
+ "dependencies": {
2883
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2884
+ },
2813
2885
  "dataType": {
2814
2886
  "const": "hazard"
2815
2887
  },
@@ -2836,6 +2908,9 @@
2836
2908
  "type": {
2837
2909
  "const": "statblockInline"
2838
2910
  },
2911
+ "dependencies": {
2912
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2913
+ },
2839
2914
  "dataType": {
2840
2915
  "const": "variantrule"
2841
2916
  },
@@ -2862,6 +2937,9 @@
2862
2937
  "type": {
2863
2938
  "const": "statblockInline"
2864
2939
  },
2940
+ "dependencies": {
2941
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2942
+ },
2865
2943
  "dataType": {
2866
2944
  "const": "vehicle"
2867
2945
  },
@@ -2888,6 +2966,9 @@
2888
2966
  "type": {
2889
2967
  "const": "statblockInline"
2890
2968
  },
2969
+ "dependencies": {
2970
+ "$ref": "util.json#/$defs/metaDependenciesArray"
2971
+ },
2891
2972
  "dataType": {
2892
2973
  "const": "vehicleUpgrade"
2893
2974
  },
@@ -2914,6 +2995,9 @@
2914
2995
  "type": {
2915
2996
  "const": "statblockInline"
2916
2997
  },
2998
+ "dependencies": {
2999
+ "$ref": "util.json#/$defs/metaDependenciesArray"
3000
+ },
2917
3001
  "dataType": {
2918
3002
  "const": "skill"
2919
3003
  },
@@ -2940,6 +3024,9 @@
2940
3024
  "type": {
2941
3025
  "const": "statblockInline"
2942
3026
  },
3027
+ "dependencies": {
3028
+ "$ref": "util.json#/$defs/metaDependenciesArray"
3029
+ },
2943
3030
  "dataType": {
2944
3031
  "const": "sense"
2945
3032
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.9",
3
+ "version": "1.10.10",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -238,7 +238,9 @@
238
238
  "type": "array",
239
239
  "items": {
240
240
  "type": "string"
241
- }
241
+ },
242
+ "minItems": 1,
243
+ "uniqueItems": true
242
244
  }
243
245
  }
244
246
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "items.json",
4
- "version": "1.13.3",
4
+ "version": "1.13.4",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemData": {
@@ -251,6 +251,8 @@
251
251
  },
252
252
  "attachedSpells": {
253
253
  "type": "array",
254
+ "minItems": 1,
255
+ "uniqueItems": true,
254
256
  "items": {
255
257
  "type": "string"
256
258
  }
@@ -802,6 +804,8 @@
802
804
  },
803
805
  "attachedSpells": {
804
806
  "type": "array",
807
+ "minItems": 1,
808
+ "uniqueItems": true,
805
809
  "items": {
806
810
  "type": "string"
807
811
  }
@@ -1356,6 +1360,8 @@
1356
1360
  },
1357
1361
  "attachedSpells": {
1358
1362
  "type": "array",
1363
+ "minItems": 1,
1364
+ "uniqueItems": true,
1359
1365
  "items": {
1360
1366
  "type": "string"
1361
1367
  }
@@ -3,20 +3,24 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.13.20",
6
+ "version": "1.13.21",
7
7
  "$defs": {
8
+ "metaDependenciesArray": {
9
+ "type": "array",
10
+ "items": {
11
+ "type": "string"
12
+ },
13
+ "minItems": 1,
14
+ "uniqueItems": true
15
+ },
8
16
  "metaBlock": {
9
17
  "type": "object",
10
18
  "properties": {
11
19
  "dependencies": {
12
20
  "type": "object",
13
- "properties": {
14
- "monster": {
15
- "type": "array",
16
- "items": {
17
- "type": "string"
18
- },
19
- "uniqueItems": true
21
+ "patternProperties": {
22
+ "^[a-zA-Z]+$": {
23
+ "$ref": "#/$defs/metaDependenciesArray"
20
24
  }
21
25
  }
22
26
  },