5etools-utils 0.17.12 → 0.17.14

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": "2.12.14",
3
+ "version": "2.13.0",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -1444,43 +1444,7 @@
1444
1444
  "$ref": "../util.json#/$defs/page"
1445
1445
  },
1446
1446
  "fluff": {
1447
- "oneOf": [
1448
- {
1449
- "$ref": "../util.json#/$defs/fluffObject"
1450
- },
1451
- {
1452
- "deprecated": true,
1453
- "type": "array",
1454
- "items": {
1455
- "type": "object",
1456
- "properties": {
1457
- "name": {
1458
- "type": "string"
1459
- },
1460
- "entries": {
1461
- "type": "array",
1462
- "items": {
1463
- "$ref": "../entry.json"
1464
- }
1465
- },
1466
- "page": {
1467
- "$ref": "../util.json#/$defs/page"
1468
- },
1469
- "source": {
1470
- "$ref": "../util.json#/$defs/source"
1471
- },
1472
- "type": {
1473
- "type": "string"
1474
- }
1475
- },
1476
- "required": [
1477
- "entries",
1478
- "source"
1479
- ],
1480
- "additionalProperties": false
1481
- }
1482
- }
1483
- ]
1447
+ "$ref": "../util.json#/$defs/fluffObject"
1484
1448
  },
1485
1449
  "additionalSpells": {
1486
1450
  "$ref": "../util-additionalspells.json#/$defs/additionalSpellsArray"
@@ -1727,43 +1691,7 @@
1727
1691
  "$ref": "../util.json#/$defs/page"
1728
1692
  },
1729
1693
  "fluff": {
1730
- "oneOf": [
1731
- {
1732
- "$ref": "../util.json#/$defs/fluffObject"
1733
- },
1734
- {
1735
- "deprecated": true,
1736
- "type": "array",
1737
- "items": {
1738
- "type": "object",
1739
- "properties": {
1740
- "name": {
1741
- "type": "string"
1742
- },
1743
- "entries": {
1744
- "type": "array",
1745
- "items": {
1746
- "$ref": "../entry.json"
1747
- }
1748
- },
1749
- "page": {
1750
- "$ref": "../util.json#/$defs/page"
1751
- },
1752
- "source": {
1753
- "$ref": "../util.json#/$defs/source"
1754
- },
1755
- "type": {
1756
- "type": "string"
1757
- }
1758
- },
1759
- "required": [
1760
- "entries",
1761
- "source"
1762
- ],
1763
- "additionalProperties": false
1764
- }
1765
- }
1766
- ]
1694
+ "$ref": "../util.json#/$defs/fluffObject"
1767
1695
  },
1768
1696
  "additionalSpells": {
1769
1697
  "$ref": "../util-additionalspells.json#/$defs/additionalSpellsArray"
@@ -2013,43 +1941,7 @@
2013
1941
  "$ref": "../util.json#/$defs/page"
2014
1942
  },
2015
1943
  "fluff": {
2016
- "oneOf": [
2017
- {
2018
- "$ref": "../util.json#/$defs/fluffObject"
2019
- },
2020
- {
2021
- "deprecated": true,
2022
- "type": "array",
2023
- "items": {
2024
- "type": "object",
2025
- "properties": {
2026
- "name": {
2027
- "type": "string"
2028
- },
2029
- "entries": {
2030
- "type": "array",
2031
- "items": {
2032
- "$ref": "../entry.json"
2033
- }
2034
- },
2035
- "page": {
2036
- "$ref": "../util.json#/$defs/page"
2037
- },
2038
- "source": {
2039
- "$ref": "../util.json#/$defs/source"
2040
- },
2041
- "type": {
2042
- "type": "string"
2043
- }
2044
- },
2045
- "required": [
2046
- "entries",
2047
- "source"
2048
- ],
2049
- "additionalProperties": false
2050
- }
2051
- }
2052
- ]
1944
+ "$ref": "../util.json#/$defs/fluffObject"
2053
1945
  },
2054
1946
  "additionalSpells": {
2055
1947
  "$ref": "../util-additionalspells.json#/$defs/additionalSpellsArray"
@@ -271,22 +271,7 @@
271
271
  "markdownDescription": "A file hash used to automatically update the value of "dateLastModified". Should not be manually created/edited."
272
272
  },
273
273
  "dependencies": {
274
- "description": "A map of `\"<data property>\": [\"<JsonSource1>\", ..., \"<JsonSourceN>\"]`. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of \"<classIdentifier1>\", ..., \"<classIdentifierN>\" items, where \"classIdentifierN\" matches the keys in \"5etools/data/class/index.json\" (when copying class/etc. homebrew, normal \"source\"-based linking applies).",
275
- "type": "object",
276
- "patternProperties": {
277
- "^[a-zA-Z]+$": {
278
- "type": "array",
279
- "items": {
280
- "type": "string"
281
- },
282
- "minItems": 1,
283
- "uniqueItems": true
284
- }
285
- },
286
- "propertyNames": {
287
- "$ref": "util-copy.json#/$defs/copyableProps"
288
- },
289
- "markdownDescription": "A map of &quot;&lt;data property&gt;&quot;: [&quot;&lt;JsonSource1&gt;&quot;, ..., &quot;&lt;JsonSourceN&gt;&quot;]. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of &quot;&lt;classIdentifier1&gt;&quot;, ..., &quot;&lt;classIdentifierN&gt;&quot; items, where &quot;classIdentifierN&quot; matches the keys in &quot;5etools/data/class/index.json&quot; (when copying class/etc. homebrew, normal &quot;source&quot;-based linking applies)."
274
+ "$ref": "util-meta.json#/$defs/dependencies"
290
275
  },
291
276
  "includes": {
292
277
  "description": "Structure as per \"dependencies\". Additional sources to be included when loading the file.",
@@ -307,14 +292,7 @@
307
292
  "markdownDescription": "Structure as per &quot;dependencies&quot;. Additional sources to be included when loading the file."
308
293
  },
309
294
  "internalCopies": {
310
- "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
311
- "type": "array",
312
- "items": {
313
- "$ref": "util-copy.json#/$defs/copyableProps"
314
- },
315
- "minItems": 1,
316
- "uniqueItems": true,
317
- "markdownDescription": "An array of keys that are copied from within the current document. e.g. &quot;item&quot;, &quot;monsterFluff&quot;, &quot;background&quot; etc."
295
+ "$ref": "util-meta.json#/$defs/internalCopies"
318
296
  },
319
297
  "fonts": {
320
298
  "description": "A map of \"font family\" to font URL.",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1157,6 +1157,7 @@
1157
1157
  "enum": [
1158
1158
  "monster",
1159
1159
  "monsterFluff",
1160
+ "monsterTemplate",
1160
1161
  "legendaryGroup",
1161
1162
  "class",
1162
1163
  "classFluff",
@@ -1198,6 +1199,7 @@
1198
1199
  "optionalfeatureFluff",
1199
1200
  "psionic",
1200
1201
  "race",
1202
+ "raceFeature",
1201
1203
  "subrace",
1202
1204
  "raceFluff",
1203
1205
  "reward",
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-meta.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Meta",
6
+ "$defs": {
7
+ "dependencies": {
8
+ "description": "A map of `\"<data property>\": [\"<JsonSource1>\", ..., \"<JsonSourceN>\"]`. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of \"<classIdentifier1>\", ..., \"<classIdentifierN>\" items, where \"classIdentifierN\" matches the keys in \"5etools/data/class/index.json\" (when copying class/etc. homebrew, normal \"source\"-based linking applies).",
9
+ "type": "object",
10
+ "patternProperties": {
11
+ "^[a-zA-Z]+$": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "string"
15
+ },
16
+ "minItems": 1,
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "propertyNames": {
21
+ "$ref": "util-copy.json#/$defs/copyableProps"
22
+ },
23
+ "markdownDescription": "A map of &quot;&lt;data property&gt;&quot;: [&quot;&lt;JsonSource1&gt;&quot;, ..., &quot;&lt;JsonSourceN&gt;&quot;]. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of &quot;&lt;classIdentifier1&gt;&quot;, ..., &quot;&lt;classIdentifierN&gt;&quot; items, where &quot;classIdentifierN&quot; matches the keys in &quot;5etools/data/class/index.json&quot; (when copying class/etc. homebrew, normal &quot;source&quot;-based linking applies)."
24
+ },
25
+ "internalCopies": {
26
+ "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
27
+ "type": "array",
28
+ "items": {
29
+ "$ref": "util-copy.json#/$defs/copyableProps"
30
+ },
31
+ "minItems": 1,
32
+ "uniqueItems": true,
33
+ "markdownDescription": "An array of keys that are copied from within the current document. e.g. &quot;item&quot;, &quot;monsterFluff&quot;, &quot;background&quot; etc."
34
+ }
35
+ }
36
+ }
@@ -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.19.5",
6
+ "version": "1.19.6",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -17,12 +17,10 @@
17
17
  "type": "object",
18
18
  "properties": {
19
19
  "dependencies": {
20
- "type": "object",
21
- "patternProperties": {
22
- "^[a-zA-Z]+$": {
23
- "$ref": "#/$defs/metaDependenciesArray"
24
- }
25
- }
20
+ "$ref": "util-meta.json#/$defs/dependencies"
21
+ },
22
+ "internalCopies": {
23
+ "$ref": "util-meta.json#/$defs/internalCopies"
26
24
  },
27
25
  "otherSources": {
28
26
  "type": "object",
@@ -34,7 +32,9 @@
34
32
  }
35
33
  }
36
34
  }
37
- }
35
+ },
36
+ "additionalProperties": false,
37
+ "minProperties": 1
38
38
  },
39
39
  "url": {
40
40
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.14",
3
+ "version": "2.13.0",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -1444,43 +1444,7 @@
1444
1444
  "$ref": "../util.json#/$defs/page"
1445
1445
  },
1446
1446
  "fluff": {
1447
- "oneOf": [
1448
- {
1449
- "$ref": "../util.json#/$defs/fluffObject"
1450
- },
1451
- {
1452
- "deprecated": true,
1453
- "type": "array",
1454
- "items": {
1455
- "type": "object",
1456
- "properties": {
1457
- "name": {
1458
- "type": "string"
1459
- },
1460
- "entries": {
1461
- "type": "array",
1462
- "items": {
1463
- "$ref": "../entry.json"
1464
- }
1465
- },
1466
- "page": {
1467
- "$ref": "../util.json#/$defs/page"
1468
- },
1469
- "source": {
1470
- "$ref": "../util.json#/$defs/source"
1471
- },
1472
- "type": {
1473
- "type": "string"
1474
- }
1475
- },
1476
- "required": [
1477
- "entries",
1478
- "source"
1479
- ],
1480
- "additionalProperties": false
1481
- }
1482
- }
1483
- ]
1447
+ "$ref": "../util.json#/$defs/fluffObject"
1484
1448
  },
1485
1449
  "additionalSpells": {
1486
1450
  "$ref": "../util-additionalspells.json#/$defs/additionalSpellsArray"
@@ -1727,43 +1691,7 @@
1727
1691
  "$ref": "../util.json#/$defs/page"
1728
1692
  },
1729
1693
  "fluff": {
1730
- "oneOf": [
1731
- {
1732
- "$ref": "../util.json#/$defs/fluffObject"
1733
- },
1734
- {
1735
- "deprecated": true,
1736
- "type": "array",
1737
- "items": {
1738
- "type": "object",
1739
- "properties": {
1740
- "name": {
1741
- "type": "string"
1742
- },
1743
- "entries": {
1744
- "type": "array",
1745
- "items": {
1746
- "$ref": "../entry.json"
1747
- }
1748
- },
1749
- "page": {
1750
- "$ref": "../util.json#/$defs/page"
1751
- },
1752
- "source": {
1753
- "$ref": "../util.json#/$defs/source"
1754
- },
1755
- "type": {
1756
- "type": "string"
1757
- }
1758
- },
1759
- "required": [
1760
- "entries",
1761
- "source"
1762
- ],
1763
- "additionalProperties": false
1764
- }
1765
- }
1766
- ]
1694
+ "$ref": "../util.json#/$defs/fluffObject"
1767
1695
  },
1768
1696
  "additionalSpells": {
1769
1697
  "$ref": "../util-additionalspells.json#/$defs/additionalSpellsArray"
@@ -2013,43 +1941,7 @@
2013
1941
  "$ref": "../util.json#/$defs/page"
2014
1942
  },
2015
1943
  "fluff": {
2016
- "oneOf": [
2017
- {
2018
- "$ref": "../util.json#/$defs/fluffObject"
2019
- },
2020
- {
2021
- "deprecated": true,
2022
- "type": "array",
2023
- "items": {
2024
- "type": "object",
2025
- "properties": {
2026
- "name": {
2027
- "type": "string"
2028
- },
2029
- "entries": {
2030
- "type": "array",
2031
- "items": {
2032
- "$ref": "../entry.json"
2033
- }
2034
- },
2035
- "page": {
2036
- "$ref": "../util.json#/$defs/page"
2037
- },
2038
- "source": {
2039
- "$ref": "../util.json#/$defs/source"
2040
- },
2041
- "type": {
2042
- "type": "string"
2043
- }
2044
- },
2045
- "required": [
2046
- "entries",
2047
- "source"
2048
- ],
2049
- "additionalProperties": false
2050
- }
2051
- }
2052
- ]
1944
+ "$ref": "../util.json#/$defs/fluffObject"
2053
1945
  },
2054
1946
  "additionalSpells": {
2055
1947
  "$ref": "../util-additionalspells.json#/$defs/additionalSpellsArray"
@@ -271,22 +271,7 @@
271
271
  "markdownDescription": "A file hash used to automatically update the value of &quot;dateLastModified&quot;. Should not be manually created/edited."
272
272
  },
273
273
  "dependencies": {
274
- "description": "A map of `\"<data property>\": [\"<JsonSource1>\", ..., \"<JsonSourceN>\"]`. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of \"<classIdentifier1>\", ..., \"<classIdentifierN>\" items, where \"classIdentifierN\" matches the keys in \"5etools/data/class/index.json\" (when copying class/etc. homebrew, normal \"source\"-based linking applies).",
275
- "type": "object",
276
- "patternProperties": {
277
- "^[a-zA-Z]+$": {
278
- "type": "array",
279
- "items": {
280
- "type": "string"
281
- },
282
- "minItems": 1,
283
- "uniqueItems": true
284
- }
285
- },
286
- "propertyNames": {
287
- "$ref": "util-copy.json#/$defs/copyableProps"
288
- },
289
- "markdownDescription": "A map of &quot;&lt;data property&gt;&quot;: [&quot;&lt;JsonSource1&gt;&quot;, ..., &quot;&lt;JsonSourceN&gt;&quot;]. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of &quot;&lt;classIdentifier1&gt;&quot;, ..., &quot;&lt;classIdentifierN&gt;&quot; items, where &quot;classIdentifierN&quot; matches the keys in &quot;5etools/data/class/index.json&quot; (when copying class/etc. homebrew, normal &quot;source&quot;-based linking applies)."
274
+ "$ref": "util-meta.json#/$defs/dependencies"
290
275
  },
291
276
  "includes": {
292
277
  "description": "Structure as per \"dependencies\". Additional sources to be included when loading the file.",
@@ -307,14 +292,7 @@
307
292
  "markdownDescription": "Structure as per &quot;dependencies&quot;. Additional sources to be included when loading the file."
308
293
  },
309
294
  "internalCopies": {
310
- "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
311
- "type": "array",
312
- "items": {
313
- "$ref": "util-copy.json#/$defs/copyableProps"
314
- },
315
- "minItems": 1,
316
- "uniqueItems": true,
317
- "markdownDescription": "An array of keys that are copied from within the current document. e.g. &quot;item&quot;, &quot;monsterFluff&quot;, &quot;background&quot; etc."
295
+ "$ref": "util-meta.json#/$defs/internalCopies"
318
296
  },
319
297
  "fonts": {
320
298
  "description": "A map of \"font family\" to font URL.",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1157,6 +1157,7 @@
1157
1157
  "enum": [
1158
1158
  "monster",
1159
1159
  "monsterFluff",
1160
+ "monsterTemplate",
1160
1161
  "legendaryGroup",
1161
1162
  "class",
1162
1163
  "classFluff",
@@ -1198,6 +1199,7 @@
1198
1199
  "optionalfeatureFluff",
1199
1200
  "psionic",
1200
1201
  "race",
1202
+ "raceFeature",
1201
1203
  "subrace",
1202
1204
  "raceFluff",
1203
1205
  "reward",
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-meta.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Meta",
6
+ "$defs": {
7
+ "dependencies": {
8
+ "description": "A map of `\"<data property>\": [\"<JsonSource1>\", ..., \"<JsonSourceN>\"]`. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of \"<classIdentifier1>\", ..., \"<classIdentifierN>\" items, where \"classIdentifierN\" matches the keys in \"5etools/data/class/index.json\" (when copying class/etc. homebrew, normal \"source\"-based linking applies).",
9
+ "type": "object",
10
+ "patternProperties": {
11
+ "^[a-zA-Z]+$": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "string"
15
+ },
16
+ "minItems": 1,
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "propertyNames": {
21
+ "$ref": "util-copy.json#/$defs/copyableProps"
22
+ },
23
+ "markdownDescription": "A map of &quot;&lt;data property&gt;&quot;: [&quot;&lt;JsonSource1&gt;&quot;, ..., &quot;&lt;JsonSourceN&gt;&quot;]. Entities from these sources can then be extended/referenced in this file.\n\nNote: when copying classes/subclasses/class features/subclass features, the array should consist of &quot;&lt;classIdentifier1&gt;&quot;, ..., &quot;&lt;classIdentifierN&gt;&quot; items, where &quot;classIdentifierN&quot; matches the keys in &quot;5etools/data/class/index.json&quot; (when copying class/etc. homebrew, normal &quot;source&quot;-based linking applies)."
24
+ },
25
+ "internalCopies": {
26
+ "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
27
+ "type": "array",
28
+ "items": {
29
+ "$ref": "util-copy.json#/$defs/copyableProps"
30
+ },
31
+ "minItems": 1,
32
+ "uniqueItems": true,
33
+ "markdownDescription": "An array of keys that are copied from within the current document. e.g. &quot;item&quot;, &quot;monsterFluff&quot;, &quot;background&quot; etc."
34
+ }
35
+ }
36
+ }
@@ -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.19.5",
6
+ "version": "1.19.6",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -17,12 +17,10 @@
17
17
  "type": "object",
18
18
  "properties": {
19
19
  "dependencies": {
20
- "type": "object",
21
- "patternProperties": {
22
- "^[a-zA-Z]+$": {
23
- "$ref": "#/$defs/metaDependenciesArray"
24
- }
25
- }
20
+ "$ref": "util-meta.json#/$defs/dependencies"
21
+ },
22
+ "internalCopies": {
23
+ "$ref": "util-meta.json#/$defs/internalCopies"
26
24
  },
27
25
  "otherSources": {
28
26
  "type": "object",
@@ -34,7 +32,9 @@
34
32
  }
35
33
  }
36
34
  }
37
- }
35
+ },
36
+ "additionalProperties": false,
37
+ "minProperties": 1
38
38
  },
39
39
  "url": {
40
40
  "type": "string",