5etools-utils 0.5.14 → 0.5.16

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 (74) hide show
  1. package/lib/TestJson.js +19 -9
  2. package/package.json +3 -2
  3. package/schema/brew/bestiary/bestiary.json +10 -1
  4. package/schema/brew/books.json +4 -1
  5. package/schema/brew/cultsboons.json +4 -1
  6. package/schema/brew/deities.json +10 -1
  7. package/schema/brew/items-base.json +4 -1
  8. package/schema/brew/items.json +10 -1
  9. package/schema/brew/languages.json +4 -1
  10. package/schema/brew/magicvariants.json +4 -1
  11. package/schema/brew/names.json +4 -1
  12. package/schema/brew/optionalfeatures.json +4 -1
  13. package/schema/brew/races.json +19 -1
  14. package/schema/brew/rewards.json +4 -1
  15. package/schema/brew/spells/spells.json +10 -1
  16. package/schema/brew/tables.json +4 -1
  17. package/schema/brew/trapshazards.json +10 -1
  18. package/schema/brew/util.json +4 -1
  19. package/schema/brew/variantrules.json +4 -1
  20. package/schema/brew/vehicles.json +13 -1
  21. package/schema/brew-fast/bestiary/bestiary.json +10 -1
  22. package/schema/brew-fast/books.json +4 -1
  23. package/schema/brew-fast/cultsboons.json +4 -1
  24. package/schema/brew-fast/deities.json +10 -1
  25. package/schema/brew-fast/items-base.json +4 -1
  26. package/schema/brew-fast/items.json +10 -1
  27. package/schema/brew-fast/languages.json +4 -1
  28. package/schema/brew-fast/magicvariants.json +4 -1
  29. package/schema/brew-fast/names.json +4 -1
  30. package/schema/brew-fast/optionalfeatures.json +4 -1
  31. package/schema/brew-fast/races.json +19 -1
  32. package/schema/brew-fast/rewards.json +4 -1
  33. package/schema/brew-fast/spells/spells.json +10 -1
  34. package/schema/brew-fast/tables.json +4 -1
  35. package/schema/brew-fast/trapshazards.json +10 -1
  36. package/schema/brew-fast/util.json +4 -1
  37. package/schema/brew-fast/variantrules.json +4 -1
  38. package/schema/brew-fast/vehicles.json +13 -1
  39. package/schema/site/bestiary/bestiary.json +10 -1
  40. package/schema/site/books.json +4 -1
  41. package/schema/site/cultsboons.json +4 -1
  42. package/schema/site/deities.json +10 -1
  43. package/schema/site/items-base.json +4 -1
  44. package/schema/site/items.json +10 -1
  45. package/schema/site/languages.json +4 -1
  46. package/schema/site/magicvariants.json +4 -1
  47. package/schema/site/names.json +4 -1
  48. package/schema/site/optionalfeatures.json +4 -1
  49. package/schema/site/races.json +19 -1
  50. package/schema/site/rewards.json +4 -1
  51. package/schema/site/spells/spells.json +10 -1
  52. package/schema/site/tables.json +4 -1
  53. package/schema/site/trapshazards.json +10 -1
  54. package/schema/site/util.json +4 -1
  55. package/schema/site/variantrules.json +4 -1
  56. package/schema/site/vehicles.json +13 -1
  57. package/schema/site-fast/bestiary/bestiary.json +10 -1
  58. package/schema/site-fast/books.json +4 -1
  59. package/schema/site-fast/cultsboons.json +4 -1
  60. package/schema/site-fast/deities.json +10 -1
  61. package/schema/site-fast/items-base.json +4 -1
  62. package/schema/site-fast/items.json +10 -1
  63. package/schema/site-fast/languages.json +4 -1
  64. package/schema/site-fast/magicvariants.json +4 -1
  65. package/schema/site-fast/names.json +4 -1
  66. package/schema/site-fast/optionalfeatures.json +4 -1
  67. package/schema/site-fast/races.json +19 -1
  68. package/schema/site-fast/rewards.json +4 -1
  69. package/schema/site-fast/spells/spells.json +10 -1
  70. package/schema/site-fast/tables.json +4 -1
  71. package/schema/site-fast/trapshazards.json +10 -1
  72. package/schema/site-fast/util.json +4 -1
  73. package/schema/site-fast/variantrules.json +4 -1
  74. package/schema/site-fast/vehicles.json +13 -1
package/lib/TestJson.js CHANGED
@@ -33,10 +33,10 @@ class JsonTester {
33
33
  if (isBrew && dirSchema) throw new Error(`"isBrew" and "dirSchema" are mutually exclusive!`);
34
34
  if (!fnGetSchemaId) throw new Error(`"fnGetSchemaId" is required!`);
35
35
 
36
- this._dirSchema = dirSchema ??
37
- (isBrew
38
- ? path.join(__dirname, "..", "schema", "brew")
39
- : path.join(__dirname, "..", "schema", "site"));
36
+ this._dirSchemaSite = path.join(__dirname, "..", "schema", "site");
37
+ this._dirSchemaBrew = path.join(__dirname, "..", "schema", "brew");
38
+
39
+ this._dirSchema = dirSchema ?? (isBrew ? this._dirSchemaBrew : this._dirSchemaSite);
40
40
  this._tagLog = tagLog;
41
41
  this._fnGetSchemaId = fnGetSchemaId;
42
42
 
@@ -112,30 +112,40 @@ class JsonTester {
112
112
  return out;
113
113
  }
114
114
 
115
- _doLoadSchema () {
115
+ doLoadSchema (type, relativeFilePath) {
116
+ if (!["site", "brew"].includes(type)) throw new Error(`Unknown schema type "${type}"`);
117
+
118
+ const dir = type === "site" ? this._dirSchemaSite : this._dirSchemaBrew;
119
+
120
+ this._ajv.addSchema(
121
+ Uf.readJSON(path.join(dir, relativeFilePath)),
122
+ relativeFilePath,
123
+ );
124
+ }
125
+
126
+ _doLoadSchemas () {
116
127
  if (this._isSchemaLoaded) return;
117
128
 
118
129
  Uf.listJsonFiles(this._dirSchema)
119
130
  .forEach(filePath => {
120
131
  filePath = path.normalize(filePath);
121
- const contents = Uf.readJSON(filePath);
122
132
 
123
133
  const relativeFilePath = path.relative(this._dirSchema, filePath)
124
134
  .replace(/\\/g, "/");
125
135
 
126
- this._ajv.addSchema(contents, relativeFilePath);
136
+ this._ajv.addSchema(Uf.readJSON(filePath), relativeFilePath);
127
137
  });
128
138
 
129
139
  this._isSchemaLoaded = true;
130
140
  }
131
141
 
132
142
  _hasSchema (schemaId) {
133
- this._doLoadSchema();
143
+ this._doLoadSchemas();
134
144
  return !!this._ajv.schemas[schemaId];
135
145
  }
136
146
 
137
147
  getFileErrors ({filePath} = {}) {
138
- this._doLoadSchema();
148
+ this._doLoadSchemas();
139
149
 
140
150
  Um.info(this._tagLog, `\tValidating "${filePath}"...`);
141
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -15,7 +15,8 @@
15
15
  "build": "node node/compile-schemas.js",
16
16
  "test": "npm run lint:js && npm run test:js",
17
17
  "test:js": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
18
- "lint:js": "eslint lib node test --fix"
18
+ "lint:js": "eslint lib node test --fix",
19
+ "preversion": "npm t"
19
20
  },
20
21
  "repository": {
21
22
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.9",
3
+ "version": "1.21.10",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1099,6 +1099,9 @@
1099
1099
  "basicRules": {
1100
1100
  "$ref": "../util.json#/$defs/basicRules"
1101
1101
  },
1102
+ "legacy": {
1103
+ "$ref": "../util.json#/$defs/legacy"
1104
+ },
1102
1105
  "summonedBySpell": {
1103
1106
  "description": "The spell used to summon this creature; specifically for TCE-esque summon spells.",
1104
1107
  "type": "string"
@@ -2198,6 +2201,9 @@
2198
2201
  "basicRules": {
2199
2202
  "$ref": "../util.json#/$defs/basicRules"
2200
2203
  },
2204
+ "legacy": {
2205
+ "$ref": "../util.json#/$defs/legacy"
2206
+ },
2201
2207
  "summonedBySpell": {
2202
2208
  "description": "The spell used to summon this creature; specifically for TCE-esque summon spells.",
2203
2209
  "type": "string"
@@ -3312,6 +3318,9 @@
3312
3318
  "basicRules": {
3313
3319
  "$ref": "../util.json#/$defs/basicRules"
3314
3320
  },
3321
+ "legacy": {
3322
+ "$ref": "../util.json#/$defs/legacy"
3323
+ },
3315
3324
  "summonedBySpell": {
3316
3325
  "description": "The spell used to summon this creature; specifically for TCE-esque summon spells.",
3317
3326
  "type": "string"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.8",
4
+ "version": "1.2.9",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -24,6 +24,9 @@
24
24
  "source": {
25
25
  "type": "string"
26
26
  },
27
+ "legacy": {
28
+ "$ref": "util.json#/$defs/legacy"
29
+ },
27
30
  "group": {
28
31
  "description": "The group under which this book should be listed in the navbar.",
29
32
  "type": "string",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "cultsboons.json",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "cult": {
@@ -22,6 +22,9 @@
22
22
  "reprintedAs": {
23
23
  "$ref": "util.json#/$defs/reprintedAs"
24
24
  },
25
+ "legacy": {
26
+ "$ref": "util.json#/$defs/legacy"
27
+ },
25
28
  "type": {
26
29
  "type": "string",
27
30
  "examples": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "deities.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "deityData": {
@@ -118,6 +118,9 @@
118
118
  "basicRules": {
119
119
  "$ref": "util.json#/$defs/basicRules"
120
120
  },
121
+ "legacy": {
122
+ "$ref": "util.json#/$defs/legacy"
123
+ },
121
124
  "customExtensionOf": {
122
125
  "type": "string",
123
126
  "description": "A UID of an existing deity that this deity extends. e.g. \"Bahgtru|Orc|SCAG\""
@@ -251,6 +254,9 @@
251
254
  "basicRules": {
252
255
  "$ref": "util.json#/$defs/basicRules"
253
256
  },
257
+ "legacy": {
258
+ "$ref": "util.json#/$defs/legacy"
259
+ },
254
260
  "customExtensionOf": {
255
261
  "type": "string",
256
262
  "description": "A UID of an existing deity that this deity extends. e.g. \"Bahgtru|Orc|SCAG\""
@@ -387,6 +393,9 @@
387
393
  "basicRules": {
388
394
  "$ref": "util.json#/$defs/basicRules"
389
395
  },
396
+ "legacy": {
397
+ "$ref": "util.json#/$defs/legacy"
398
+ },
390
399
  "customExtensionOf": {
391
400
  "type": "string",
392
401
  "description": "A UID of an existing deity that this deity extends. e.g. \"Bahgtru|Orc|SCAG\""
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "items-base.json",
4
- "version": "1.5.4",
4
+ "version": "1.5.5",
5
5
  "$defs": {
6
6
  "itemPropertyLookupArray": {
7
7
  "type": "array",
@@ -312,6 +312,9 @@
312
312
  "basicRules": {
313
313
  "$ref": "util.json#/$defs/basicRules"
314
314
  },
315
+ "legacy": {
316
+ "$ref": "util.json#/$defs/legacy"
317
+ },
315
318
  "otherSources": {
316
319
  "$ref": "util.json#/$defs/otherSources"
317
320
  },
@@ -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.1",
4
+ "version": "1.13.2",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemData": {
@@ -423,6 +423,9 @@
423
423
  "basicRules": {
424
424
  "$ref": "util.json#/$defs/basicRules"
425
425
  },
426
+ "legacy": {
427
+ "$ref": "util.json#/$defs/legacy"
428
+ },
426
429
  "packContents": {
427
430
  "type": "array",
428
431
  "items": {
@@ -1016,6 +1019,9 @@
1016
1019
  "basicRules": {
1017
1020
  "$ref": "util.json#/$defs/basicRules"
1018
1021
  },
1022
+ "legacy": {
1023
+ "$ref": "util.json#/$defs/legacy"
1024
+ },
1019
1025
  "packContents": {
1020
1026
  "type": "array",
1021
1027
  "items": {
@@ -1612,6 +1618,9 @@
1612
1618
  "basicRules": {
1613
1619
  "$ref": "util.json#/$defs/basicRules"
1614
1620
  },
1621
+ "legacy": {
1622
+ "$ref": "util.json#/$defs/legacy"
1623
+ },
1615
1624
  "packContents": {
1616
1625
  "type": "array",
1617
1626
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "languages.json",
4
- "version": "1.1.9",
4
+ "version": "1.1.10",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "language": {
@@ -28,6 +28,9 @@
28
28
  "basicRules": {
29
29
  "$ref": "util.json#/$defs/basicRules"
30
30
  },
31
+ "legacy": {
32
+ "$ref": "util.json#/$defs/legacy"
33
+ },
31
34
  "otherSources": {
32
35
  "$ref": "util.json#/$defs/otherSources"
33
36
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.0",
4
+ "version": "1.8.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -224,6 +224,9 @@
224
224
  "basicRules": {
225
225
  "$ref": "util.json#/$defs/basicRules"
226
226
  },
227
+ "legacy": {
228
+ "$ref": "util.json#/$defs/legacy"
229
+ },
227
230
  "otherSources": {
228
231
  "$ref": "util.json#/$defs/otherSources"
229
232
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "names.json",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "title": "NameArray",
6
6
  "type": "object",
7
7
  "$defs": {
@@ -59,6 +59,9 @@
59
59
  "page": {
60
60
  "$ref": "util.json#/$defs/page"
61
61
  },
62
+ "legacy": {
63
+ "$ref": "util.json#/$defs/legacy"
64
+ },
62
65
  "tables": {
63
66
  "type": "array",
64
67
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "optionalfeatures.json",
4
- "version": "1.12.0",
4
+ "version": "1.12.1",
5
5
  "title": "Optional Features",
6
6
  "type": "object",
7
7
  "$defs": {
@@ -55,6 +55,9 @@
55
55
  "srd": {
56
56
  "$ref": "util.json#/$defs/srd"
57
57
  },
58
+ "legacy": {
59
+ "$ref": "util.json#/$defs/legacy"
60
+ },
58
61
  "isClassFeatureVariant": {
59
62
  "type": "boolean"
60
63
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "races.json",
4
- "version": "1.12.2",
4
+ "version": "1.12.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "sharedData": {
@@ -105,6 +105,9 @@
105
105
  "basicRules": {
106
106
  "$ref": "util.json#/$defs/basicRules"
107
107
  },
108
+ "legacy": {
109
+ "$ref": "util.json#/$defs/legacy"
110
+ },
108
111
  "lineage": {
109
112
  "oneOf": [
110
113
  {
@@ -339,6 +342,9 @@
339
342
  "basicRules": {
340
343
  "$ref": "util.json#/$defs/basicRules"
341
344
  },
345
+ "legacy": {
346
+ "$ref": "util.json#/$defs/legacy"
347
+ },
342
348
  "lineage": {
343
349
  "oneOf": [
344
350
  {
@@ -664,6 +670,9 @@
664
670
  "basicRules": {
665
671
  "$ref": "util.json#/$defs/basicRules"
666
672
  },
673
+ "legacy": {
674
+ "$ref": "util.json#/$defs/legacy"
675
+ },
667
676
  "lineage": {
668
677
  "oneOf": [
669
678
  {
@@ -902,6 +911,9 @@
902
911
  "basicRules": {
903
912
  "$ref": "util.json#/$defs/basicRules"
904
913
  },
914
+ "legacy": {
915
+ "$ref": "util.json#/$defs/legacy"
916
+ },
905
917
  "lineage": {
906
918
  "oneOf": [
907
919
  {
@@ -1201,6 +1213,9 @@
1201
1213
  "basicRules": {
1202
1214
  "$ref": "util.json#/$defs/basicRules"
1203
1215
  },
1216
+ "legacy": {
1217
+ "$ref": "util.json#/$defs/legacy"
1218
+ },
1204
1219
  "lineage": {
1205
1220
  "oneOf": [
1206
1221
  {
@@ -1451,6 +1466,9 @@
1451
1466
  "basicRules": {
1452
1467
  "$ref": "util.json#/$defs/basicRules"
1453
1468
  },
1469
+ "legacy": {
1470
+ "$ref": "util.json#/$defs/legacy"
1471
+ },
1454
1472
  "lineage": {
1455
1473
  "oneOf": [
1456
1474
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "rewards.json",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "reward": {
@@ -16,6 +16,9 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "legacy": {
20
+ "$ref": "util.json#/$defs/legacy"
21
+ },
19
22
  "type": {
20
23
  "type": "string",
21
24
  "examples": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "spells.json",
4
- "version": "1.9.3",
4
+ "version": "1.9.4",
5
5
  "title": "Spells",
6
6
  "type": "object",
7
7
  "$defs": {
@@ -339,6 +339,9 @@
339
339
  "basicRules": {
340
340
  "$ref": "../util.json#/$defs/basicRules"
341
341
  },
342
+ "legacy": {
343
+ "$ref": "../util.json#/$defs/legacy"
344
+ },
342
345
  "scalingLevelDice": {
343
346
  "oneOf": [
344
347
  {
@@ -901,6 +904,9 @@
901
904
  "basicRules": {
902
905
  "$ref": "../util.json#/$defs/basicRules"
903
906
  },
907
+ "legacy": {
908
+ "$ref": "../util.json#/$defs/legacy"
909
+ },
904
910
  "scalingLevelDice": {
905
911
  "oneOf": [
906
912
  {
@@ -1471,6 +1477,9 @@
1471
1477
  "basicRules": {
1472
1478
  "$ref": "../util.json#/$defs/basicRules"
1473
1479
  },
1480
+ "legacy": {
1481
+ "$ref": "../util.json#/$defs/legacy"
1482
+ },
1474
1483
  "scalingLevelDice": {
1475
1484
  "oneOf": [
1476
1485
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "tables.json",
4
- "version": "1.1.4",
4
+ "version": "1.1.5",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "tableData": {
@@ -27,6 +27,9 @@
27
27
  "basicRules": {
28
28
  "$ref": "util.json#/$defs/basicRules"
29
29
  },
30
+ "legacy": {
31
+ "$ref": "util.json#/$defs/legacy"
32
+ },
30
33
  "page": {
31
34
  "$ref": "util.json#/$defs/page"
32
35
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "trapshazards.json",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "trap": {
@@ -36,6 +36,9 @@
36
36
  "srd": {
37
37
  "$ref": "util.json#/$defs/srd"
38
38
  },
39
+ "legacy": {
40
+ "$ref": "util.json#/$defs/legacy"
41
+ },
39
42
  "foundryImg": {
40
43
  "$ref": "util.json#/$defs/foundryImg"
41
44
  }
@@ -154,6 +157,9 @@
154
157
  "srd": {
155
158
  "$ref": "util.json#/$defs/srd"
156
159
  },
160
+ "legacy": {
161
+ "$ref": "util.json#/$defs/legacy"
162
+ },
157
163
  "foundryImg": {
158
164
  "$ref": "util.json#/$defs/foundryImg"
159
165
  }
@@ -206,6 +212,9 @@
206
212
  "srd": {
207
213
  "$ref": "util.json#/$defs/srd"
208
214
  },
215
+ "legacy": {
216
+ "$ref": "util.json#/$defs/legacy"
217
+ },
209
218
  "foundrySystem": {
210
219
  "$ref": "util.json#/$defs/foundrySystemObject"
211
220
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.13.7",
6
+ "version": "1.13.8",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -3237,6 +3237,9 @@
3237
3237
  "basicRules": {
3238
3238
  "const": true
3239
3239
  },
3240
+ "legacy": {
3241
+ "const": true
3242
+ },
3240
3243
  "fluffObject": {
3241
3244
  "type": "object",
3242
3245
  "properties": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "variantrules.json",
4
- "version": "1.1.4",
4
+ "version": "1.1.5",
5
5
  "title": "RulesArray",
6
6
  "type": "object",
7
7
  "properties": {
@@ -53,6 +53,9 @@
53
53
  "srd": {
54
54
  "$ref": "util.json#/$defs/srd"
55
55
  },
56
+ "legacy": {
57
+ "$ref": "util.json#/$defs/legacy"
58
+ },
56
59
  "additionalSources": {
57
60
  "$ref": "util.json#/$defs/additionalSources"
58
61
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "vehicles.json",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "vehicleTerrain": {
@@ -88,6 +88,9 @@
88
88
  "otherSources": {
89
89
  "$ref": "util.json#/$defs/otherSources"
90
90
  },
91
+ "legacy": {
92
+ "$ref": "util.json#/$defs/legacy"
93
+ },
91
94
  "upgradeType": {
92
95
  "type": "array",
93
96
  "items": {
@@ -125,6 +128,9 @@
125
128
  "otherSources": {
126
129
  "$ref": "util.json#/$defs/otherSources"
127
130
  },
131
+ "legacy": {
132
+ "$ref": "util.json#/$defs/legacy"
133
+ },
128
134
  "vehicleType": {
129
135
  "const": "SHIP"
130
136
  },
@@ -478,6 +484,9 @@
478
484
  "otherSources": {
479
485
  "$ref": "util.json#/$defs/otherSources"
480
486
  },
487
+ "legacy": {
488
+ "$ref": "util.json#/$defs/legacy"
489
+ },
481
490
  "vehicleType": {
482
491
  "const": "SPELLJAMMER"
483
492
  },
@@ -651,6 +660,9 @@
651
660
  "otherSources": {
652
661
  "$ref": "util.json#/$defs/otherSources"
653
662
  },
663
+ "legacy": {
664
+ "$ref": "util.json#/$defs/legacy"
665
+ },
654
666
  "vehicleType": {
655
667
  "const": "INFWAR"
656
668
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.9",
3
+ "version": "1.21.10",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1099,6 +1099,9 @@
1099
1099
  "basicRules": {
1100
1100
  "$ref": "../util.json#/$defs/basicRules"
1101
1101
  },
1102
+ "legacy": {
1103
+ "$ref": "../util.json#/$defs/legacy"
1104
+ },
1102
1105
  "summonedBySpell": {
1103
1106
  "description": "The spell used to summon this creature; specifically for TCE-esque summon spells.",
1104
1107
  "type": "string"
@@ -2198,6 +2201,9 @@
2198
2201
  "basicRules": {
2199
2202
  "$ref": "../util.json#/$defs/basicRules"
2200
2203
  },
2204
+ "legacy": {
2205
+ "$ref": "../util.json#/$defs/legacy"
2206
+ },
2201
2207
  "summonedBySpell": {
2202
2208
  "description": "The spell used to summon this creature; specifically for TCE-esque summon spells.",
2203
2209
  "type": "string"
@@ -3312,6 +3318,9 @@
3312
3318
  "basicRules": {
3313
3319
  "$ref": "../util.json#/$defs/basicRules"
3314
3320
  },
3321
+ "legacy": {
3322
+ "$ref": "../util.json#/$defs/legacy"
3323
+ },
3315
3324
  "summonedBySpell": {
3316
3325
  "description": "The spell used to summon this creature; specifically for TCE-esque summon spells.",
3317
3326
  "type": "string"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.8",
4
+ "version": "1.2.9",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -24,6 +24,9 @@
24
24
  "source": {
25
25
  "type": "string"
26
26
  },
27
+ "legacy": {
28
+ "$ref": "util.json#/$defs/legacy"
29
+ },
27
30
  "group": {
28
31
  "description": "The group under which this book should be listed in the navbar.",
29
32
  "type": "string",