5etools-utils 0.17.11 → 0.17.12

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.
@@ -98,8 +98,8 @@ class _BrewFileTester {
98
98
  static _testFile_publicationTuples ({ALL_ERRORS, file, contents}) {
99
99
  this._PROP_PUBLICATION_PAIRS
100
100
  .forEach(({propContents, propData}) => {
101
- const idsContents = new Set((contents[propContents] || []).map(it => it.id));
102
- const idsData = new Set((contents[propData] || []).map(it => it.id));
101
+ const idsContents = new Set((contents[propContents] || []).map(corpusContents => corpusContents.id));
102
+ const idsData = new Set((contents[propData] || []).map(corpusData => corpusData.id));
103
103
 
104
104
  const idsCombined = new Set([...idsContents, ...idsData]);
105
105
  const duplicateCorpusIds = [...idsCombined].filter(src => this._ALL_CORPUS_IDS_LOWER.has(src.toLowerCase()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.17.11",
3
+ "version": "0.17.12",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventure.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "adventureData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "adventureData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "book.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "bookData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "bookData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,8 +1,33 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "corpus-shared.json",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "$defs": {
6
+ "wrappedAdventureBookDataArray": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "$ref": "util.json#/$defs/corpusId"
13
+ },
14
+ "source": {
15
+ "$ref": "util.json#/$defs/source"
16
+ },
17
+ "data": {
18
+ "$ref": "util.json#/$defs/adventureBookData"
19
+ }
20
+ },
21
+ "required": [
22
+ "id",
23
+ "source",
24
+ "data"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "minItems": 1,
29
+ "uniqueItems": true
30
+ },
6
31
  "corpusCover": {
7
32
  "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
33
  "$ref": "entry.json#/$defs/mediaHref",
@@ -1,34 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
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": {
7
- "wrappedAdventureBookDataArray": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "$ref": "util.json#/$defs/corpusId"
14
- },
15
- "source": {
16
- "$ref": "util.json#/$defs/source"
17
- },
18
- "data": {
19
- "$ref": "util.json#/$defs/adventureBookData"
20
- }
21
- },
22
- "required": [
23
- "id",
24
- "source",
25
- "data"
26
- ],
27
- "additionalProperties": false
28
- },
29
- "minItems": 1,
30
- "uniqueItems": true
31
- },
32
7
  "_meta": {
33
8
  "description": "Metadata for the included data arrays",
34
9
  "type": "object",
@@ -554,7 +529,7 @@
554
529
  "$ref": "adventures.json#/properties/adventure"
555
530
  },
556
531
  "adventureData": {
557
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
532
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
558
533
  },
559
534
  "monster": {
560
535
  "$ref": "bestiary/bestiary.json#/properties/monster"
@@ -590,7 +565,7 @@
590
565
  "$ref": "books.json#/properties/book"
591
566
  },
592
567
  "bookData": {
593
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
568
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
594
569
  },
595
570
  "class": {
596
571
  "$ref": "class/class.json#/properties/class"
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventure.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "adventureData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "adventureData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "book.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "bookData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "bookData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,8 +1,31 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "corpus-shared.json",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "$defs": {
6
+ "wrappedAdventureBookDataArray": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "$ref": "util.json#/$defs/corpusId"
13
+ },
14
+ "source": {
15
+ "$ref": "util.json#/$defs/source"
16
+ },
17
+ "data": {}
18
+ },
19
+ "required": [
20
+ "id",
21
+ "source",
22
+ "data"
23
+ ],
24
+ "additionalProperties": false
25
+ },
26
+ "minItems": 1,
27
+ "uniqueItems": true
28
+ },
6
29
  "corpusCover": {
7
30
  "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
31
  "$ref": "entry.json#/$defs/mediaHref",
@@ -1,32 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
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": {
7
- "wrappedAdventureBookDataArray": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "$ref": "util.json#/$defs/corpusId"
14
- },
15
- "source": {
16
- "$ref": "util.json#/$defs/source"
17
- },
18
- "data": {}
19
- },
20
- "required": [
21
- "id",
22
- "source",
23
- "data"
24
- ],
25
- "additionalProperties": false
26
- },
27
- "minItems": 1,
28
- "uniqueItems": true
29
- },
30
7
  "_meta": {
31
8
  "description": "Metadata for the included data arrays",
32
9
  "type": "object",
@@ -552,7 +529,7 @@
552
529
  "$ref": "adventures.json#/properties/adventure"
553
530
  },
554
531
  "adventureData": {
555
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
532
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
556
533
  },
557
534
  "monster": {
558
535
  "$ref": "bestiary/bestiary.json#/properties/monster"
@@ -588,7 +565,7 @@
588
565
  "$ref": "books.json#/properties/book"
589
566
  },
590
567
  "bookData": {
591
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
568
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
592
569
  },
593
570
  "class": {
594
571
  "$ref": "class/class.json#/properties/class"
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventure.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "adventureData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "adventureData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "book.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "bookData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "bookData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,8 +1,33 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "corpus-shared.json",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "$defs": {
6
+ "wrappedAdventureBookDataArray": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "$ref": "util.json#/$defs/corpusId"
13
+ },
14
+ "source": {
15
+ "$ref": "util.json#/$defs/source"
16
+ },
17
+ "data": {
18
+ "$ref": "util.json#/$defs/adventureBookData"
19
+ }
20
+ },
21
+ "required": [
22
+ "id",
23
+ "source",
24
+ "data"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "minItems": 1,
29
+ "uniqueItems": true
30
+ },
6
31
  "corpusCover": {
7
32
  "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
33
  "$ref": "entry.json#/$defs/mediaHref",
@@ -1,34 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
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": {
7
- "wrappedAdventureBookDataArray": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "$ref": "util.json#/$defs/corpusId"
14
- },
15
- "source": {
16
- "$ref": "util.json#/$defs/source"
17
- },
18
- "data": {
19
- "$ref": "util.json#/$defs/adventureBookData"
20
- }
21
- },
22
- "required": [
23
- "id",
24
- "source",
25
- "data"
26
- ],
27
- "additionalProperties": false
28
- },
29
- "minItems": 1,
30
- "uniqueItems": true
31
- },
32
7
  "_meta": {
33
8
  "description": "Metadata for the included data arrays",
34
9
  "type": "object",
@@ -554,7 +529,7 @@
554
529
  "$ref": "adventures.json#/properties/adventure"
555
530
  },
556
531
  "adventureData": {
557
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
532
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
558
533
  },
559
534
  "monster": {
560
535
  "$ref": "bestiary/bestiary.json#/properties/monster"
@@ -590,7 +565,7 @@
590
565
  "$ref": "books.json#/properties/book"
591
566
  },
592
567
  "bookData": {
593
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
568
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
594
569
  },
595
570
  "class": {
596
571
  "$ref": "class/class.json#/properties/class"
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventure.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "adventureData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "adventureData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "book.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "bookData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "bookData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,8 +1,31 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "corpus-shared.json",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "$defs": {
6
+ "wrappedAdventureBookDataArray": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "$ref": "util.json#/$defs/corpusId"
13
+ },
14
+ "source": {
15
+ "$ref": "util.json#/$defs/source"
16
+ },
17
+ "data": {}
18
+ },
19
+ "required": [
20
+ "id",
21
+ "source",
22
+ "data"
23
+ ],
24
+ "additionalProperties": false
25
+ },
26
+ "minItems": 1,
27
+ "uniqueItems": true
28
+ },
6
29
  "corpusCover": {
7
30
  "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
31
  "$ref": "entry.json#/$defs/mediaHref",
@@ -1,32 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
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": {
7
- "wrappedAdventureBookDataArray": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "$ref": "util.json#/$defs/corpusId"
14
- },
15
- "source": {
16
- "$ref": "util.json#/$defs/source"
17
- },
18
- "data": {}
19
- },
20
- "required": [
21
- "id",
22
- "source",
23
- "data"
24
- ],
25
- "additionalProperties": false
26
- },
27
- "minItems": 1,
28
- "uniqueItems": true
29
- },
30
7
  "_meta": {
31
8
  "description": "Metadata for the included data arrays",
32
9
  "type": "object",
@@ -552,7 +529,7 @@
552
529
  "$ref": "adventures.json#/properties/adventure"
553
530
  },
554
531
  "adventureData": {
555
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
532
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
556
533
  },
557
534
  "monster": {
558
535
  "$ref": "bestiary/bestiary.json#/properties/monster"
@@ -588,7 +565,7 @@
588
565
  "$ref": "books.json#/properties/book"
589
566
  },
590
567
  "bookData": {
591
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
568
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
592
569
  },
593
570
  "class": {
594
571
  "$ref": "class/class.json#/properties/class"
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventure.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "adventureData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "adventureData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "book.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "bookData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "bookData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,8 +1,33 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "corpus-shared.json",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "$defs": {
6
+ "wrappedAdventureBookDataArray": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "$ref": "util.json#/$defs/corpusId"
13
+ },
14
+ "source": {
15
+ "$ref": "util.json#/$defs/source"
16
+ },
17
+ "data": {
18
+ "$ref": "util.json#/$defs/adventureBookData"
19
+ }
20
+ },
21
+ "required": [
22
+ "id",
23
+ "source",
24
+ "data"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "minItems": 1,
29
+ "uniqueItems": true
30
+ },
6
31
  "corpusCover": {
7
32
  "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
33
  "$ref": "entry.json#/$defs/mediaHref",
@@ -1,34 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
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": {
7
- "wrappedAdventureBookDataArray": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "$ref": "util.json#/$defs/corpusId"
14
- },
15
- "source": {
16
- "$ref": "util.json#/$defs/source"
17
- },
18
- "data": {
19
- "$ref": "util.json#/$defs/adventureBookData"
20
- }
21
- },
22
- "required": [
23
- "id",
24
- "source",
25
- "data"
26
- ],
27
- "additionalProperties": false
28
- },
29
- "minItems": 1,
30
- "uniqueItems": true
31
- },
32
7
  "_meta": {
33
8
  "description": "Metadata for the included data arrays",
34
9
  "type": "object",
@@ -554,7 +529,7 @@
554
529
  "$ref": "adventures.json#/properties/adventure"
555
530
  },
556
531
  "adventureData": {
557
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
532
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
558
533
  },
559
534
  "monster": {
560
535
  "$ref": "bestiary/bestiary.json#/properties/monster"
@@ -590,7 +565,7 @@
590
565
  "$ref": "books.json#/properties/book"
591
566
  },
592
567
  "bookData": {
593
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
568
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
594
569
  },
595
570
  "class": {
596
571
  "$ref": "class/class.json#/properties/class"
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventure.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "adventureData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "adventureData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "book.json",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
- "data": {
8
- "$ref": "../util.json#/$defs/adventureBookData"
7
+ "bookData": {
8
+ "$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
9
9
  }
10
10
  },
11
+ "required": [
12
+ "bookData"
13
+ ],
11
14
  "additionalProperties": false
12
15
  }
@@ -1,8 +1,31 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "corpus-shared.json",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "$defs": {
6
+ "wrappedAdventureBookDataArray": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "$ref": "util.json#/$defs/corpusId"
13
+ },
14
+ "source": {
15
+ "$ref": "util.json#/$defs/source"
16
+ },
17
+ "data": {}
18
+ },
19
+ "required": [
20
+ "id",
21
+ "source",
22
+ "data"
23
+ ],
24
+ "additionalProperties": false
25
+ },
26
+ "minItems": 1,
27
+ "uniqueItems": true
28
+ },
6
29
  "corpusCover": {
7
30
  "description": "A link to an image. Preferred sizes are 300 x 300px or 600 x 600px.",
8
31
  "$ref": "entry.json#/$defs/mediaHref",
@@ -1,32 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
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": {
7
- "wrappedAdventureBookDataArray": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "$ref": "util.json#/$defs/corpusId"
14
- },
15
- "source": {
16
- "$ref": "util.json#/$defs/source"
17
- },
18
- "data": {}
19
- },
20
- "required": [
21
- "id",
22
- "source",
23
- "data"
24
- ],
25
- "additionalProperties": false
26
- },
27
- "minItems": 1,
28
- "uniqueItems": true
29
- },
30
7
  "_meta": {
31
8
  "description": "Metadata for the included data arrays",
32
9
  "type": "object",
@@ -552,7 +529,7 @@
552
529
  "$ref": "adventures.json#/properties/adventure"
553
530
  },
554
531
  "adventureData": {
555
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
532
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
556
533
  },
557
534
  "monster": {
558
535
  "$ref": "bestiary/bestiary.json#/properties/monster"
@@ -588,7 +565,7 @@
588
565
  "$ref": "books.json#/properties/book"
589
566
  },
590
567
  "bookData": {
591
- "$ref": "#/$defs/wrappedAdventureBookDataArray"
568
+ "$ref": "corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
592
569
  },
593
570
  "class": {
594
571
  "$ref": "class/class.json#/properties/class"