5etools-utils 0.8.37 → 0.9.1
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.
- package/README.md +1 -0
- package/bin/test-json-ua.js +5 -0
- package/lib/BrewTester.js +3 -3
- package/lib/TestJson.js +22 -7
- package/package.json +2 -1
- package/schema/brew/backgrounds.json +13 -13
- package/schema/brew/class/class.json +1 -1
- package/schema/brew/items-shared.json +1 -1
- package/schema/brew/races.json +1 -1
- package/schema/brew/spells/spells.json +61 -61
- package/schema/brew/util.json +47 -1
- package/schema/brew-fast/backgrounds.json +13 -13
- package/schema/brew-fast/class/class.json +1 -1
- package/schema/brew-fast/items-shared.json +1 -1
- package/schema/brew-fast/races.json +1 -1
- package/schema/brew-fast/spells/spells.json +61 -61
- package/schema/brew-fast/util.json +47 -1
- package/schema/site/backgrounds.json +1 -1
- package/schema/site/class/class.json +1 -1
- package/schema/site/items-shared.json +1 -1
- package/schema/site/races.json +1 -1
- package/schema/site/spells/spells.json +1 -1
- package/schema/site/util.json +48 -2
- package/schema/site-fast/backgrounds.json +1 -1
- package/schema/site-fast/class/class.json +1 -1
- package/schema/site-fast/items-shared.json +1 -1
- package/schema/site-fast/races.json +1 -1
- package/schema/site-fast/spells/spells.json +1 -1
- package/schema/site-fast/util.json +48 -2
- package/schema/ua/actions.json +97 -0
- package/schema/ua/adventure/adventure.json +12 -0
- package/schema/ua/adventures.json +214 -0
- package/schema/ua/backgrounds.json +326 -0
- package/schema/ua/bestiary/bestiary.json +3735 -0
- package/schema/ua/bestiary/fluff-bestiary.json +15 -0
- package/schema/ua/bestiary/fluff-index.json +11 -0
- package/schema/ua/bestiary/foundry.json +15 -0
- package/schema/ua/bestiary/index.json +11 -0
- package/schema/ua/bestiary/legendarygroups.json +202 -0
- package/schema/ua/bestiary/template.json +275 -0
- package/schema/ua/book/book.json +12 -0
- package/schema/ua/books.json +141 -0
- package/schema/ua/changelog.json +35 -0
- package/schema/ua/charcreationoptions.json +80 -0
- package/schema/ua/class/class.json +1881 -0
- package/schema/ua/class/foundry.json +397 -0
- package/schema/ua/class/index.json +11 -0
- package/schema/ua/conditionsdiseases.json +82 -0
- package/schema/ua/cultsboons.json +175 -0
- package/schema/ua/decks.json +504 -0
- package/schema/ua/deities.json +473 -0
- package/schema/ua/encounters.json +105 -0
- package/schema/ua/entry.json +3748 -0
- package/schema/ua/feats.json +117 -0
- package/schema/ua/fluff-backgrounds.json +15 -0
- package/schema/ua/fluff-charcreationoptions.json +43 -0
- package/schema/ua/fluff-conditionsdiseases.json +43 -0
- package/schema/ua/fluff-feats.json +15 -0
- package/schema/ua/fluff-items.json +15 -0
- package/schema/ua/fluff-languages.json +42 -0
- package/schema/ua/fluff-objects.json +15 -0
- package/schema/ua/fluff-races.json +214 -0
- package/schema/ua/fluff-recipes.json +42 -0
- package/schema/ua/fluff-vehicles.json +63 -0
- package/schema/ua/foundry-actions.json +15 -0
- package/schema/ua/foundry-backgrounds.json +53 -0
- package/schema/ua/foundry-feats.json +15 -0
- package/schema/ua/foundry-items.json +63 -0
- package/schema/ua/foundry-optionalfeatures.json +15 -0
- package/schema/ua/foundry-psionics.json +56 -0
- package/schema/ua/foundry-races.json +58 -0
- package/schema/ua/foundry-rewards.json +15 -0
- package/schema/ua/foundry-vehicles.json +15 -0
- package/schema/ua/generated/bookref-quick.json +72 -0
- package/schema/ua/generated/gendata-spell-source-lookup.json +230 -0
- package/schema/ua/homebrew.json +633 -0
- package/schema/ua/items-base.json +959 -0
- package/schema/ua/items-shared.json +267 -0
- package/schema/ua/items.json +1770 -0
- package/schema/ua/languages.json +123 -0
- package/schema/ua/life.json +17 -0
- package/schema/ua/loot.json +510 -0
- package/schema/ua/magicvariants.json +361 -0
- package/schema/ua/makebrew-creature.json +66 -0
- package/schema/ua/makecards.json +43 -0
- package/schema/ua/monsterfeatures.json +53 -0
- package/schema/ua/msbcr.json +60 -0
- package/schema/ua/names.json +94 -0
- package/schema/ua/objects.json +165 -0
- package/schema/ua/optionalfeatures.json +130 -0
- package/schema/ua/psionics.json +173 -0
- package/schema/ua/races.json +1668 -0
- package/schema/ua/recipes.json +185 -0
- package/schema/ua/renderdemo.json +16 -0
- package/schema/ua/rewards.json +93 -0
- package/schema/ua/senses.json +54 -0
- package/schema/ua/skills.json +54 -0
- package/schema/ua/spells/fluff-index.json +11 -0
- package/schema/ua/spells/fluff-spells.json +15 -0
- package/schema/ua/spells/foundry.json +15 -0
- package/schema/ua/spells/index.json +11 -0
- package/schema/ua/spells/roll20.json +112 -0
- package/schema/ua/spells/spells.json +1250 -0
- package/schema/ua/tables.json +220 -0
- package/schema/ua/trapshazards.json +236 -0
- package/schema/ua/util.json +4466 -0
- package/schema/ua/variantrules.json +74 -0
- package/schema/ua/vehicles.json +820 -0
- package/schema/ua-fast/actions.json +97 -0
- package/schema/ua-fast/adventure/adventure.json +12 -0
- package/schema/ua-fast/adventures.json +214 -0
- package/schema/ua-fast/backgrounds.json +326 -0
- package/schema/ua-fast/bestiary/bestiary.json +3735 -0
- package/schema/ua-fast/bestiary/fluff-bestiary.json +15 -0
- package/schema/ua-fast/bestiary/fluff-index.json +11 -0
- package/schema/ua-fast/bestiary/foundry.json +15 -0
- package/schema/ua-fast/bestiary/index.json +11 -0
- package/schema/ua-fast/bestiary/legendarygroups.json +202 -0
- package/schema/ua-fast/bestiary/template.json +275 -0
- package/schema/ua-fast/book/book.json +12 -0
- package/schema/ua-fast/books.json +141 -0
- package/schema/ua-fast/changelog.json +35 -0
- package/schema/ua-fast/charcreationoptions.json +80 -0
- package/schema/ua-fast/class/class.json +1881 -0
- package/schema/ua-fast/class/foundry.json +397 -0
- package/schema/ua-fast/class/index.json +11 -0
- package/schema/ua-fast/conditionsdiseases.json +82 -0
- package/schema/ua-fast/cultsboons.json +175 -0
- package/schema/ua-fast/decks.json +504 -0
- package/schema/ua-fast/deities.json +473 -0
- package/schema/ua-fast/encounters.json +105 -0
- package/schema/ua-fast/entry.json +3748 -0
- package/schema/ua-fast/feats.json +117 -0
- package/schema/ua-fast/fluff-backgrounds.json +15 -0
- package/schema/ua-fast/fluff-charcreationoptions.json +43 -0
- package/schema/ua-fast/fluff-conditionsdiseases.json +43 -0
- package/schema/ua-fast/fluff-feats.json +15 -0
- package/schema/ua-fast/fluff-items.json +15 -0
- package/schema/ua-fast/fluff-languages.json +42 -0
- package/schema/ua-fast/fluff-objects.json +15 -0
- package/schema/ua-fast/fluff-races.json +214 -0
- package/schema/ua-fast/fluff-recipes.json +42 -0
- package/schema/ua-fast/fluff-vehicles.json +63 -0
- package/schema/ua-fast/foundry-actions.json +15 -0
- package/schema/ua-fast/foundry-backgrounds.json +53 -0
- package/schema/ua-fast/foundry-feats.json +15 -0
- package/schema/ua-fast/foundry-items.json +63 -0
- package/schema/ua-fast/foundry-optionalfeatures.json +15 -0
- package/schema/ua-fast/foundry-psionics.json +56 -0
- package/schema/ua-fast/foundry-races.json +58 -0
- package/schema/ua-fast/foundry-rewards.json +15 -0
- package/schema/ua-fast/foundry-vehicles.json +15 -0
- package/schema/ua-fast/generated/bookref-quick.json +72 -0
- package/schema/ua-fast/generated/gendata-spell-source-lookup.json +230 -0
- package/schema/ua-fast/homebrew.json +631 -0
- package/schema/ua-fast/items-base.json +959 -0
- package/schema/ua-fast/items-shared.json +267 -0
- package/schema/ua-fast/items.json +1770 -0
- package/schema/ua-fast/languages.json +123 -0
- package/schema/ua-fast/life.json +17 -0
- package/schema/ua-fast/loot.json +510 -0
- package/schema/ua-fast/magicvariants.json +361 -0
- package/schema/ua-fast/makebrew-creature.json +66 -0
- package/schema/ua-fast/makecards.json +43 -0
- package/schema/ua-fast/monsterfeatures.json +53 -0
- package/schema/ua-fast/msbcr.json +60 -0
- package/schema/ua-fast/names.json +94 -0
- package/schema/ua-fast/objects.json +165 -0
- package/schema/ua-fast/optionalfeatures.json +130 -0
- package/schema/ua-fast/psionics.json +173 -0
- package/schema/ua-fast/races.json +1668 -0
- package/schema/ua-fast/recipes.json +185 -0
- package/schema/ua-fast/renderdemo.json +16 -0
- package/schema/ua-fast/rewards.json +93 -0
- package/schema/ua-fast/senses.json +54 -0
- package/schema/ua-fast/skills.json +54 -0
- package/schema/ua-fast/spells/fluff-index.json +11 -0
- package/schema/ua-fast/spells/fluff-spells.json +15 -0
- package/schema/ua-fast/spells/foundry.json +15 -0
- package/schema/ua-fast/spells/index.json +11 -0
- package/schema/ua-fast/spells/roll20.json +112 -0
- package/schema/ua-fast/spells/spells.json +1250 -0
- package/schema/ua-fast/tables.json +220 -0
- package/schema/ua-fast/trapshazards.json +236 -0
- package/schema/ua-fast/util.json +4466 -0
- package/schema/ua-fast/variantrules.json +74 -0
- package/schema/ua-fast/vehicles.json +820 -0
package/README.md
CHANGED
package/lib/BrewTester.js
CHANGED
|
@@ -10,7 +10,7 @@ class _BrewTesterJson {
|
|
|
10
10
|
static _LOG_TAG = "JSON";
|
|
11
11
|
static _IS_FAIL_SLOW = !!process.env.FAIL_SLOW;
|
|
12
12
|
|
|
13
|
-
static async pRun (args) {
|
|
13
|
+
static async pRun (args, {mode = "brew"} = {}) {
|
|
14
14
|
const program = new Command()
|
|
15
15
|
.argument("[file]", "File to test")
|
|
16
16
|
.option("--dir <dir>", "Directory to test")
|
|
@@ -19,7 +19,7 @@ class _BrewTesterJson {
|
|
|
19
19
|
program.parse(args);
|
|
20
20
|
const opts = program.opts();
|
|
21
21
|
|
|
22
|
-
const jsonTester = new JsonTester({
|
|
22
|
+
const jsonTester = new JsonTester({mode, tagLog: this._LOG_TAG, fnGetSchemaId: () => "homebrew.json"});
|
|
23
23
|
|
|
24
24
|
let results;
|
|
25
25
|
if (program.args[0]) {
|
|
@@ -95,7 +95,7 @@ class _BrewTesterFileExtensions {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
class BrewTester {
|
|
98
|
-
static async pTestJson (args) { return _BrewTesterJson.pRun(args); }
|
|
98
|
+
static async pTestJson (args, opts) { return _BrewTesterJson.pRun(args, opts); }
|
|
99
99
|
static testFileLocations () { return _BrewTesterFileLocations.run(); }
|
|
100
100
|
static testFileExtensions () { return _BrewTesterFileExtensions.run(); }
|
|
101
101
|
}
|
package/lib/TestJson.js
CHANGED
|
@@ -18,6 +18,12 @@ const _IS_TRIM_RESULTS = !process.env.VET_TEST_JSON_RESULTS_UNTRIMMED;
|
|
|
18
18
|
|
|
19
19
|
const LOG_TAG = "JSON";
|
|
20
20
|
|
|
21
|
+
const MODES = {
|
|
22
|
+
SITE: "site",
|
|
23
|
+
BREW: "brew",
|
|
24
|
+
UA: "ua",
|
|
25
|
+
};
|
|
26
|
+
|
|
21
27
|
class JsonTester {
|
|
22
28
|
static _RE_DATE = /^\d\d\d\d-\d\d-\d\d$/;
|
|
23
29
|
|
|
@@ -25,19 +31,23 @@ class JsonTester {
|
|
|
25
31
|
{
|
|
26
32
|
fnGetSchemaId,
|
|
27
33
|
|
|
28
|
-
|
|
34
|
+
mode = null,
|
|
29
35
|
dirSchema = null,
|
|
30
36
|
tagLog = LOG_TAG,
|
|
31
37
|
},
|
|
32
38
|
) {
|
|
33
|
-
|
|
39
|
+
this._tagLog = tagLog;
|
|
40
|
+
|
|
41
|
+
if (mode && dirSchema) throw new Error(`"mode" and "dirSchema" are mutually exclusive!`);
|
|
42
|
+
if (mode != null && !Object.values(MODES).includes(mode)) throw new Error(`"mode" must be one of ${Object.values(MODES).join("/")}!`);
|
|
34
43
|
if (!fnGetSchemaId) throw new Error(`"fnGetSchemaId" is required!`);
|
|
35
44
|
|
|
36
45
|
this._dirSchemaSite = path.join(__dirname, "..", "schema", "site");
|
|
37
46
|
this._dirSchemaBrew = path.join(__dirname, "..", "schema", "brew");
|
|
47
|
+
this._dirSchemaUa = path.join(__dirname, "..", "schema", "ua");
|
|
48
|
+
|
|
49
|
+
this._dirSchema = dirSchema ?? (mode === "site" ? this._dirSchemaSite : mode === "brew" ? this._dirSchemaBrew : this._dirSchemaUa);
|
|
38
50
|
|
|
39
|
-
this._dirSchema = dirSchema ?? (isBrew ? this._dirSchemaBrew : this._dirSchemaSite);
|
|
40
|
-
this._tagLog = tagLog;
|
|
41
51
|
this._fnGetSchemaId = fnGetSchemaId;
|
|
42
52
|
|
|
43
53
|
// region Set up validator
|
|
@@ -113,9 +123,14 @@ class JsonTester {
|
|
|
113
123
|
}
|
|
114
124
|
|
|
115
125
|
doLoadSchema (type, relativeFilePath) {
|
|
116
|
-
if (!
|
|
126
|
+
if (!Object.values(MODES).includes(type)) throw new Error(`Unknown schema type "${type}"`);
|
|
117
127
|
|
|
118
|
-
const dir =
|
|
128
|
+
const dir = {
|
|
129
|
+
[MODES.SITE]: this._dirSchemaSite,
|
|
130
|
+
[MODES.BREW]: this._dirSchemaBrew,
|
|
131
|
+
[MODES.UA]: this._dirSchemaUa,
|
|
132
|
+
}[type];
|
|
133
|
+
if (!dir) throw new Error(`Unhandled type "${type}"!`);
|
|
119
134
|
|
|
120
135
|
this._ajv.addSchema(
|
|
121
136
|
Uf.readJsonSync(path.join(dir, relativeFilePath)),
|
|
@@ -198,7 +213,7 @@ class JsonTester {
|
|
|
198
213
|
}
|
|
199
214
|
|
|
200
215
|
async pGetErrorsOnDirsWorkers ({isFailFast = false, fileList = null} = {}) {
|
|
201
|
-
Um.info(this._tagLog, `Validating JSON against
|
|
216
|
+
Um.info(this._tagLog, `Validating JSON against schemas in dir: ${this._dirSchema}`);
|
|
202
217
|
|
|
203
218
|
const cntWorkers = Math.max(1, os.cpus().length - 1);
|
|
204
219
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5etools-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Shared utilities for the 5etools ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/Api.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"bin": {
|
|
15
15
|
"test-json-brew": "bin/test-json-brew.js",
|
|
16
|
+
"test-json-ua": "bin/test-json-ua.js",
|
|
16
17
|
"test-file-extensions": "bin/test-file-extensions.js",
|
|
17
18
|
"test-file-locations": "bin/test-file-locations.js"
|
|
18
19
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "backgrounds.json",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"$defs": {
|
|
7
7
|
"backgroundData": {
|
|
@@ -74,6 +74,10 @@
|
|
|
74
74
|
"hasFluffImages": {
|
|
75
75
|
"type": "boolean"
|
|
76
76
|
},
|
|
77
|
+
"fluff": {
|
|
78
|
+
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
79
|
+
"$ref": "util.json#/$defs/fluffObject"
|
|
80
|
+
},
|
|
77
81
|
"expertise": {
|
|
78
82
|
"$ref": "util.json#/$defs/expertise"
|
|
79
83
|
},
|
|
@@ -95,10 +99,6 @@
|
|
|
95
99
|
"conditionImmune": {
|
|
96
100
|
"$ref": "util.json#/$defs/conditionImmunityArrayPlayer"
|
|
97
101
|
},
|
|
98
|
-
"fluff": {
|
|
99
|
-
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
100
|
-
"$ref": "util.json#/$defs/fluffObject"
|
|
101
|
-
},
|
|
102
102
|
"foundrySystem": {
|
|
103
103
|
"$ref": "util.json#/$defs/foundrySystemObject"
|
|
104
104
|
},
|
|
@@ -189,6 +189,10 @@
|
|
|
189
189
|
"hasFluffImages": {
|
|
190
190
|
"type": "boolean"
|
|
191
191
|
},
|
|
192
|
+
"fluff": {
|
|
193
|
+
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
194
|
+
"$ref": "util.json#/$defs/fluffObject"
|
|
195
|
+
},
|
|
192
196
|
"expertise": {
|
|
193
197
|
"$ref": "util.json#/$defs/expertise"
|
|
194
198
|
},
|
|
@@ -210,10 +214,6 @@
|
|
|
210
214
|
"conditionImmune": {
|
|
211
215
|
"$ref": "util.json#/$defs/conditionImmunityArrayPlayer"
|
|
212
216
|
},
|
|
213
|
-
"fluff": {
|
|
214
|
-
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
215
|
-
"$ref": "util.json#/$defs/fluffObject"
|
|
216
|
-
},
|
|
217
217
|
"foundrySystem": {
|
|
218
218
|
"$ref": "util.json#/$defs/foundrySystemObject"
|
|
219
219
|
},
|
|
@@ -307,6 +307,10 @@
|
|
|
307
307
|
"hasFluffImages": {
|
|
308
308
|
"type": "boolean"
|
|
309
309
|
},
|
|
310
|
+
"fluff": {
|
|
311
|
+
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
312
|
+
"$ref": "util.json#/$defs/fluffObject"
|
|
313
|
+
},
|
|
310
314
|
"expertise": {
|
|
311
315
|
"$ref": "util.json#/$defs/expertise"
|
|
312
316
|
},
|
|
@@ -328,10 +332,6 @@
|
|
|
328
332
|
"conditionImmune": {
|
|
329
333
|
"$ref": "util.json#/$defs/conditionImmunityArrayPlayer"
|
|
330
334
|
},
|
|
331
|
-
"fluff": {
|
|
332
|
-
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
333
|
-
"$ref": "util.json#/$defs/fluffObject"
|
|
334
|
-
},
|
|
335
335
|
"foundrySystem": {
|
|
336
336
|
"$ref": "util.json#/$defs/foundrySystemObject"
|
|
337
337
|
},
|
package/schema/brew/races.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "1.9.7",
|
|
5
5
|
"title": "Spells",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"$defs": {
|
|
@@ -341,6 +341,26 @@
|
|
|
341
341
|
"hasFluffImages": {
|
|
342
342
|
"type": "boolean"
|
|
343
343
|
},
|
|
344
|
+
"groups": {
|
|
345
|
+
"type": "array",
|
|
346
|
+
"items": {
|
|
347
|
+
"type": "object",
|
|
348
|
+
"properties": {
|
|
349
|
+
"name": {
|
|
350
|
+
"type": "string"
|
|
351
|
+
},
|
|
352
|
+
"source": {
|
|
353
|
+
"$ref": "../util.json#/$defs/source"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"required": [
|
|
357
|
+
"name",
|
|
358
|
+
"source"
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"minItems": 1,
|
|
362
|
+
"uniqueItems": true
|
|
363
|
+
},
|
|
344
364
|
"classes": {
|
|
345
365
|
"type": "object",
|
|
346
366
|
"properties": {
|
|
@@ -497,26 +517,6 @@
|
|
|
497
517
|
"minItems": 1,
|
|
498
518
|
"uniqueItems": true
|
|
499
519
|
},
|
|
500
|
-
"groups": {
|
|
501
|
-
"type": "array",
|
|
502
|
-
"items": {
|
|
503
|
-
"type": "object",
|
|
504
|
-
"properties": {
|
|
505
|
-
"name": {
|
|
506
|
-
"type": "string"
|
|
507
|
-
},
|
|
508
|
-
"source": {
|
|
509
|
-
"$ref": "../util.json#/$defs/source"
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
"required": [
|
|
513
|
-
"name",
|
|
514
|
-
"source"
|
|
515
|
-
]
|
|
516
|
-
},
|
|
517
|
-
"minItems": 1,
|
|
518
|
-
"uniqueItems": true
|
|
519
|
-
},
|
|
520
520
|
"subschools": {
|
|
521
521
|
"description": "For homebrew use only.",
|
|
522
522
|
"type": "array",
|
|
@@ -886,6 +886,26 @@
|
|
|
886
886
|
"hasFluffImages": {
|
|
887
887
|
"type": "boolean"
|
|
888
888
|
},
|
|
889
|
+
"groups": {
|
|
890
|
+
"type": "array",
|
|
891
|
+
"items": {
|
|
892
|
+
"type": "object",
|
|
893
|
+
"properties": {
|
|
894
|
+
"name": {
|
|
895
|
+
"type": "string"
|
|
896
|
+
},
|
|
897
|
+
"source": {
|
|
898
|
+
"$ref": "../util.json#/$defs/source"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"required": [
|
|
902
|
+
"name",
|
|
903
|
+
"source"
|
|
904
|
+
]
|
|
905
|
+
},
|
|
906
|
+
"minItems": 1,
|
|
907
|
+
"uniqueItems": true
|
|
908
|
+
},
|
|
889
909
|
"classes": {
|
|
890
910
|
"type": "object",
|
|
891
911
|
"properties": {
|
|
@@ -1042,26 +1062,6 @@
|
|
|
1042
1062
|
"minItems": 1,
|
|
1043
1063
|
"uniqueItems": true
|
|
1044
1064
|
},
|
|
1045
|
-
"groups": {
|
|
1046
|
-
"type": "array",
|
|
1047
|
-
"items": {
|
|
1048
|
-
"type": "object",
|
|
1049
|
-
"properties": {
|
|
1050
|
-
"name": {
|
|
1051
|
-
"type": "string"
|
|
1052
|
-
},
|
|
1053
|
-
"source": {
|
|
1054
|
-
"$ref": "../util.json#/$defs/source"
|
|
1055
|
-
}
|
|
1056
|
-
},
|
|
1057
|
-
"required": [
|
|
1058
|
-
"name",
|
|
1059
|
-
"source"
|
|
1060
|
-
]
|
|
1061
|
-
},
|
|
1062
|
-
"minItems": 1,
|
|
1063
|
-
"uniqueItems": true
|
|
1064
|
-
},
|
|
1065
1065
|
"subschools": {
|
|
1066
1066
|
"description": "For homebrew use only.",
|
|
1067
1067
|
"type": "array",
|
|
@@ -1439,6 +1439,26 @@
|
|
|
1439
1439
|
"hasFluffImages": {
|
|
1440
1440
|
"type": "boolean"
|
|
1441
1441
|
},
|
|
1442
|
+
"groups": {
|
|
1443
|
+
"type": "array",
|
|
1444
|
+
"items": {
|
|
1445
|
+
"type": "object",
|
|
1446
|
+
"properties": {
|
|
1447
|
+
"name": {
|
|
1448
|
+
"type": "string"
|
|
1449
|
+
},
|
|
1450
|
+
"source": {
|
|
1451
|
+
"$ref": "../util.json#/$defs/source"
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
"required": [
|
|
1455
|
+
"name",
|
|
1456
|
+
"source"
|
|
1457
|
+
]
|
|
1458
|
+
},
|
|
1459
|
+
"minItems": 1,
|
|
1460
|
+
"uniqueItems": true
|
|
1461
|
+
},
|
|
1442
1462
|
"classes": {
|
|
1443
1463
|
"type": "object",
|
|
1444
1464
|
"properties": {
|
|
@@ -1595,26 +1615,6 @@
|
|
|
1595
1615
|
"minItems": 1,
|
|
1596
1616
|
"uniqueItems": true
|
|
1597
1617
|
},
|
|
1598
|
-
"groups": {
|
|
1599
|
-
"type": "array",
|
|
1600
|
-
"items": {
|
|
1601
|
-
"type": "object",
|
|
1602
|
-
"properties": {
|
|
1603
|
-
"name": {
|
|
1604
|
-
"type": "string"
|
|
1605
|
-
},
|
|
1606
|
-
"source": {
|
|
1607
|
-
"$ref": "../util.json#/$defs/source"
|
|
1608
|
-
}
|
|
1609
|
-
},
|
|
1610
|
-
"required": [
|
|
1611
|
-
"name",
|
|
1612
|
-
"source"
|
|
1613
|
-
]
|
|
1614
|
-
},
|
|
1615
|
-
"minItems": 1,
|
|
1616
|
-
"uniqueItems": true
|
|
1617
|
-
},
|
|
1618
1618
|
"subschools": {
|
|
1619
1619
|
"description": "For homebrew use only.",
|
|
1620
1620
|
"type": "array",
|
package/schema/brew/util.json
CHANGED
|
@@ -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.
|
|
6
|
+
"version": "1.13.30",
|
|
7
7
|
"$defs": {
|
|
8
8
|
"metaDependenciesArray": {
|
|
9
9
|
"type": "array",
|
|
@@ -193,6 +193,7 @@
|
|
|
193
193
|
"auran",
|
|
194
194
|
"celestial",
|
|
195
195
|
"common",
|
|
196
|
+
"common sign language",
|
|
196
197
|
"deep speech",
|
|
197
198
|
"draconic",
|
|
198
199
|
"druidic",
|
|
@@ -237,6 +238,9 @@
|
|
|
237
238
|
"common": {
|
|
238
239
|
"const": true
|
|
239
240
|
},
|
|
241
|
+
"common sign language": {
|
|
242
|
+
"const": true
|
|
243
|
+
},
|
|
240
244
|
"deep speech": {
|
|
241
245
|
"const": true
|
|
242
246
|
},
|
|
@@ -683,6 +687,12 @@
|
|
|
683
687
|
"celestial": {
|
|
684
688
|
"const": true
|
|
685
689
|
},
|
|
690
|
+
"common": {
|
|
691
|
+
"const": true
|
|
692
|
+
},
|
|
693
|
+
"common sign language": {
|
|
694
|
+
"const": true
|
|
695
|
+
},
|
|
686
696
|
"deep speech": {
|
|
687
697
|
"const": true
|
|
688
698
|
},
|
|
@@ -692,9 +702,36 @@
|
|
|
692
702
|
"infernal": {
|
|
693
703
|
"const": true
|
|
694
704
|
},
|
|
705
|
+
"gith": {
|
|
706
|
+
"const": true
|
|
707
|
+
},
|
|
708
|
+
"gnomish": {
|
|
709
|
+
"const": true
|
|
710
|
+
},
|
|
711
|
+
"goblin": {
|
|
712
|
+
"const": true
|
|
713
|
+
},
|
|
714
|
+
"halfling": {
|
|
715
|
+
"const": true
|
|
716
|
+
},
|
|
717
|
+
"orc": {
|
|
718
|
+
"const": true
|
|
719
|
+
},
|
|
695
720
|
"primordial": {
|
|
696
721
|
"const": true
|
|
697
722
|
},
|
|
723
|
+
"aquan": {
|
|
724
|
+
"const": true
|
|
725
|
+
},
|
|
726
|
+
"auran": {
|
|
727
|
+
"const": true
|
|
728
|
+
},
|
|
729
|
+
"ignan": {
|
|
730
|
+
"const": true
|
|
731
|
+
},
|
|
732
|
+
"terran": {
|
|
733
|
+
"const": true
|
|
734
|
+
},
|
|
698
735
|
"sylvan": {
|
|
699
736
|
"const": true
|
|
700
737
|
},
|
|
@@ -710,6 +747,15 @@
|
|
|
710
747
|
"giant": {
|
|
711
748
|
"const": true
|
|
712
749
|
},
|
|
750
|
+
"other": {
|
|
751
|
+
"const": true
|
|
752
|
+
},
|
|
753
|
+
"druidic": {
|
|
754
|
+
"const": true
|
|
755
|
+
},
|
|
756
|
+
"thieves' cant": {
|
|
757
|
+
"const": true
|
|
758
|
+
},
|
|
713
759
|
"otherLanguage": {
|
|
714
760
|
"const": true
|
|
715
761
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "backgrounds.json",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"$defs": {
|
|
7
7
|
"backgroundData": {
|
|
@@ -74,6 +74,10 @@
|
|
|
74
74
|
"hasFluffImages": {
|
|
75
75
|
"type": "boolean"
|
|
76
76
|
},
|
|
77
|
+
"fluff": {
|
|
78
|
+
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
79
|
+
"$ref": "util.json#/$defs/fluffObject"
|
|
80
|
+
},
|
|
77
81
|
"expertise": {
|
|
78
82
|
"$ref": "util.json#/$defs/expertise"
|
|
79
83
|
},
|
|
@@ -95,10 +99,6 @@
|
|
|
95
99
|
"conditionImmune": {
|
|
96
100
|
"$ref": "util.json#/$defs/conditionImmunityArrayPlayer"
|
|
97
101
|
},
|
|
98
|
-
"fluff": {
|
|
99
|
-
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
100
|
-
"$ref": "util.json#/$defs/fluffObject"
|
|
101
|
-
},
|
|
102
102
|
"foundrySystem": {
|
|
103
103
|
"$ref": "util.json#/$defs/foundrySystemObject"
|
|
104
104
|
},
|
|
@@ -189,6 +189,10 @@
|
|
|
189
189
|
"hasFluffImages": {
|
|
190
190
|
"type": "boolean"
|
|
191
191
|
},
|
|
192
|
+
"fluff": {
|
|
193
|
+
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
194
|
+
"$ref": "util.json#/$defs/fluffObject"
|
|
195
|
+
},
|
|
192
196
|
"expertise": {
|
|
193
197
|
"$ref": "util.json#/$defs/expertise"
|
|
194
198
|
},
|
|
@@ -210,10 +214,6 @@
|
|
|
210
214
|
"conditionImmune": {
|
|
211
215
|
"$ref": "util.json#/$defs/conditionImmunityArrayPlayer"
|
|
212
216
|
},
|
|
213
|
-
"fluff": {
|
|
214
|
-
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
215
|
-
"$ref": "util.json#/$defs/fluffObject"
|
|
216
|
-
},
|
|
217
217
|
"foundrySystem": {
|
|
218
218
|
"$ref": "util.json#/$defs/foundrySystemObject"
|
|
219
219
|
},
|
|
@@ -307,6 +307,10 @@
|
|
|
307
307
|
"hasFluffImages": {
|
|
308
308
|
"type": "boolean"
|
|
309
309
|
},
|
|
310
|
+
"fluff": {
|
|
311
|
+
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
312
|
+
"$ref": "util.json#/$defs/fluffObject"
|
|
313
|
+
},
|
|
310
314
|
"expertise": {
|
|
311
315
|
"$ref": "util.json#/$defs/expertise"
|
|
312
316
|
},
|
|
@@ -328,10 +332,6 @@
|
|
|
328
332
|
"conditionImmune": {
|
|
329
333
|
"$ref": "util.json#/$defs/conditionImmunityArrayPlayer"
|
|
330
334
|
},
|
|
331
|
-
"fluff": {
|
|
332
|
-
"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
|
|
333
|
-
"$ref": "util.json#/$defs/fluffObject"
|
|
334
|
-
},
|
|
335
335
|
"foundrySystem": {
|
|
336
336
|
"$ref": "util.json#/$defs/foundrySystemObject"
|
|
337
337
|
},
|