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.
- package/lib/BrewCleaner.js +2 -2
- package/package.json +1 -1
- package/schema/brew/adventure/adventure.json +6 -3
- package/schema/brew/book/book.json +6 -3
- package/schema/brew/corpus-shared.json +26 -1
- package/schema/brew/homebrew.json +3 -28
- package/schema/brew-fast/adventure/adventure.json +6 -3
- package/schema/brew-fast/book/book.json +6 -3
- package/schema/brew-fast/corpus-shared.json +24 -1
- package/schema/brew-fast/homebrew.json +3 -26
- package/schema/site/adventure/adventure.json +6 -3
- package/schema/site/book/book.json +6 -3
- package/schema/site/corpus-shared.json +26 -1
- package/schema/site/homebrew.json +3 -28
- package/schema/site-fast/adventure/adventure.json +6 -3
- package/schema/site-fast/book/book.json +6 -3
- package/schema/site-fast/corpus-shared.json +24 -1
- package/schema/site-fast/homebrew.json +3 -26
- package/schema/ua/adventure/adventure.json +6 -3
- package/schema/ua/book/book.json +6 -3
- package/schema/ua/corpus-shared.json +26 -1
- package/schema/ua/homebrew.json +3 -28
- package/schema/ua-fast/adventure/adventure.json +6 -3
- package/schema/ua-fast/book/book.json +6 -3
- package/schema/ua-fast/corpus-shared.json +24 -1
- package/schema/ua-fast/homebrew.json +3 -26
package/lib/BrewCleaner.js
CHANGED
|
@@ -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(
|
|
102
|
-
const idsData = new Set((contents[propData] || []).map(
|
|
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,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "adventure.json",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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
|
+
"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.
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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
|
+
"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.
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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
|
+
"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.
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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
|
+
"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.
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
7
|
+
"adventureData": {
|
|
8
|
+
"$ref": "../corpus-shared.json#/$defs/wrappedAdventureBookDataArray"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
+
"required": [
|
|
12
|
+
"adventureData"
|
|
13
|
+
],
|
|
11
14
|
"additionalProperties": false
|
|
12
15
|
}
|
package/schema/ua/book/book.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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
|
+
"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",
|
package/schema/ua/homebrew.json
CHANGED
|
@@ -1,34 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"version": "1.14.
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"$ref": "../
|
|
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
|
+
"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.
|
|
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"
|