5etools-utils 0.8.36 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/README.md +1 -0
  2. package/bin/test-json-ua.js +5 -0
  3. package/lib/BrewTester.js +2 -2
  4. package/lib/TestJson.js +19 -6
  5. package/package.json +2 -1
  6. package/schema/brew/items.json +10 -7
  7. package/schema/brew-fast/items.json +10 -7
  8. package/schema/site/items.json +10 -7
  9. package/schema/site/util.json +1 -1
  10. package/schema/site-fast/items.json +10 -7
  11. package/schema/site-fast/util.json +1 -1
  12. package/schema/ua/actions.json +97 -0
  13. package/schema/ua/adventure/adventure.json +12 -0
  14. package/schema/ua/adventures.json +214 -0
  15. package/schema/ua/backgrounds.json +314 -0
  16. package/schema/ua/bestiary/bestiary.json +3735 -0
  17. package/schema/ua/bestiary/fluff-bestiary.json +15 -0
  18. package/schema/ua/bestiary/fluff-index.json +11 -0
  19. package/schema/ua/bestiary/foundry.json +15 -0
  20. package/schema/ua/bestiary/index.json +11 -0
  21. package/schema/ua/bestiary/legendarygroups.json +202 -0
  22. package/schema/ua/bestiary/template.json +275 -0
  23. package/schema/ua/book/book.json +12 -0
  24. package/schema/ua/books.json +141 -0
  25. package/schema/ua/changelog.json +35 -0
  26. package/schema/ua/charcreationoptions.json +80 -0
  27. package/schema/ua/class/class.json +1782 -0
  28. package/schema/ua/class/foundry.json +397 -0
  29. package/schema/ua/class/index.json +11 -0
  30. package/schema/ua/conditionsdiseases.json +82 -0
  31. package/schema/ua/cultsboons.json +175 -0
  32. package/schema/ua/decks.json +504 -0
  33. package/schema/ua/deities.json +473 -0
  34. package/schema/ua/encounters.json +105 -0
  35. package/schema/ua/entry.json +3748 -0
  36. package/schema/ua/feats.json +117 -0
  37. package/schema/ua/fluff-backgrounds.json +15 -0
  38. package/schema/ua/fluff-charcreationoptions.json +43 -0
  39. package/schema/ua/fluff-conditionsdiseases.json +43 -0
  40. package/schema/ua/fluff-feats.json +15 -0
  41. package/schema/ua/fluff-items.json +15 -0
  42. package/schema/ua/fluff-languages.json +42 -0
  43. package/schema/ua/fluff-objects.json +15 -0
  44. package/schema/ua/fluff-races.json +214 -0
  45. package/schema/ua/fluff-recipes.json +42 -0
  46. package/schema/ua/fluff-vehicles.json +63 -0
  47. package/schema/ua/foundry-actions.json +15 -0
  48. package/schema/ua/foundry-backgrounds.json +53 -0
  49. package/schema/ua/foundry-feats.json +15 -0
  50. package/schema/ua/foundry-items.json +63 -0
  51. package/schema/ua/foundry-optionalfeatures.json +15 -0
  52. package/schema/ua/foundry-psionics.json +56 -0
  53. package/schema/ua/foundry-races.json +58 -0
  54. package/schema/ua/foundry-rewards.json +15 -0
  55. package/schema/ua/foundry-vehicles.json +15 -0
  56. package/schema/ua/generated/bookref-quick.json +72 -0
  57. package/schema/ua/generated/gendata-spell-source-lookup.json +230 -0
  58. package/schema/ua/homebrew.json +633 -0
  59. package/schema/ua/items-base.json +959 -0
  60. package/schema/ua/items-shared.json +267 -0
  61. package/schema/ua/items.json +1770 -0
  62. package/schema/ua/languages.json +123 -0
  63. package/schema/ua/life.json +17 -0
  64. package/schema/ua/loot.json +510 -0
  65. package/schema/ua/magicvariants.json +361 -0
  66. package/schema/ua/makebrew-creature.json +66 -0
  67. package/schema/ua/makecards.json +43 -0
  68. package/schema/ua/monsterfeatures.json +53 -0
  69. package/schema/ua/msbcr.json +60 -0
  70. package/schema/ua/names.json +94 -0
  71. package/schema/ua/objects.json +165 -0
  72. package/schema/ua/optionalfeatures.json +130 -0
  73. package/schema/ua/psionics.json +173 -0
  74. package/schema/ua/races.json +1650 -0
  75. package/schema/ua/recipes.json +185 -0
  76. package/schema/ua/renderdemo.json +16 -0
  77. package/schema/ua/rewards.json +93 -0
  78. package/schema/ua/senses.json +54 -0
  79. package/schema/ua/skills.json +54 -0
  80. package/schema/ua/spells/fluff-index.json +11 -0
  81. package/schema/ua/spells/fluff-spells.json +15 -0
  82. package/schema/ua/spells/foundry.json +15 -0
  83. package/schema/ua/spells/index.json +11 -0
  84. package/schema/ua/spells/roll20.json +112 -0
  85. package/schema/ua/spells/spells.json +1190 -0
  86. package/schema/ua/tables.json +220 -0
  87. package/schema/ua/trapshazards.json +236 -0
  88. package/schema/ua/util.json +4420 -0
  89. package/schema/ua/variantrules.json +74 -0
  90. package/schema/ua/vehicles.json +820 -0
  91. package/schema/ua-fast/actions.json +97 -0
  92. package/schema/ua-fast/adventure/adventure.json +12 -0
  93. package/schema/ua-fast/adventures.json +214 -0
  94. package/schema/ua-fast/backgrounds.json +314 -0
  95. package/schema/ua-fast/bestiary/bestiary.json +3735 -0
  96. package/schema/ua-fast/bestiary/fluff-bestiary.json +15 -0
  97. package/schema/ua-fast/bestiary/fluff-index.json +11 -0
  98. package/schema/ua-fast/bestiary/foundry.json +15 -0
  99. package/schema/ua-fast/bestiary/index.json +11 -0
  100. package/schema/ua-fast/bestiary/legendarygroups.json +202 -0
  101. package/schema/ua-fast/bestiary/template.json +275 -0
  102. package/schema/ua-fast/book/book.json +12 -0
  103. package/schema/ua-fast/books.json +141 -0
  104. package/schema/ua-fast/changelog.json +35 -0
  105. package/schema/ua-fast/charcreationoptions.json +80 -0
  106. package/schema/ua-fast/class/class.json +1782 -0
  107. package/schema/ua-fast/class/foundry.json +397 -0
  108. package/schema/ua-fast/class/index.json +11 -0
  109. package/schema/ua-fast/conditionsdiseases.json +82 -0
  110. package/schema/ua-fast/cultsboons.json +175 -0
  111. package/schema/ua-fast/decks.json +504 -0
  112. package/schema/ua-fast/deities.json +473 -0
  113. package/schema/ua-fast/encounters.json +105 -0
  114. package/schema/ua-fast/entry.json +3748 -0
  115. package/schema/ua-fast/feats.json +117 -0
  116. package/schema/ua-fast/fluff-backgrounds.json +15 -0
  117. package/schema/ua-fast/fluff-charcreationoptions.json +43 -0
  118. package/schema/ua-fast/fluff-conditionsdiseases.json +43 -0
  119. package/schema/ua-fast/fluff-feats.json +15 -0
  120. package/schema/ua-fast/fluff-items.json +15 -0
  121. package/schema/ua-fast/fluff-languages.json +42 -0
  122. package/schema/ua-fast/fluff-objects.json +15 -0
  123. package/schema/ua-fast/fluff-races.json +214 -0
  124. package/schema/ua-fast/fluff-recipes.json +42 -0
  125. package/schema/ua-fast/fluff-vehicles.json +63 -0
  126. package/schema/ua-fast/foundry-actions.json +15 -0
  127. package/schema/ua-fast/foundry-backgrounds.json +53 -0
  128. package/schema/ua-fast/foundry-feats.json +15 -0
  129. package/schema/ua-fast/foundry-items.json +63 -0
  130. package/schema/ua-fast/foundry-optionalfeatures.json +15 -0
  131. package/schema/ua-fast/foundry-psionics.json +56 -0
  132. package/schema/ua-fast/foundry-races.json +58 -0
  133. package/schema/ua-fast/foundry-rewards.json +15 -0
  134. package/schema/ua-fast/foundry-vehicles.json +15 -0
  135. package/schema/ua-fast/generated/bookref-quick.json +72 -0
  136. package/schema/ua-fast/generated/gendata-spell-source-lookup.json +230 -0
  137. package/schema/ua-fast/homebrew.json +631 -0
  138. package/schema/ua-fast/items-base.json +959 -0
  139. package/schema/ua-fast/items-shared.json +267 -0
  140. package/schema/ua-fast/items.json +1770 -0
  141. package/schema/ua-fast/languages.json +123 -0
  142. package/schema/ua-fast/life.json +17 -0
  143. package/schema/ua-fast/loot.json +510 -0
  144. package/schema/ua-fast/magicvariants.json +361 -0
  145. package/schema/ua-fast/makebrew-creature.json +66 -0
  146. package/schema/ua-fast/makecards.json +43 -0
  147. package/schema/ua-fast/monsterfeatures.json +53 -0
  148. package/schema/ua-fast/msbcr.json +60 -0
  149. package/schema/ua-fast/names.json +94 -0
  150. package/schema/ua-fast/objects.json +165 -0
  151. package/schema/ua-fast/optionalfeatures.json +130 -0
  152. package/schema/ua-fast/psionics.json +173 -0
  153. package/schema/ua-fast/races.json +1650 -0
  154. package/schema/ua-fast/recipes.json +185 -0
  155. package/schema/ua-fast/renderdemo.json +16 -0
  156. package/schema/ua-fast/rewards.json +93 -0
  157. package/schema/ua-fast/senses.json +54 -0
  158. package/schema/ua-fast/skills.json +54 -0
  159. package/schema/ua-fast/spells/fluff-index.json +11 -0
  160. package/schema/ua-fast/spells/fluff-spells.json +15 -0
  161. package/schema/ua-fast/spells/foundry.json +15 -0
  162. package/schema/ua-fast/spells/index.json +11 -0
  163. package/schema/ua-fast/spells/roll20.json +112 -0
  164. package/schema/ua-fast/spells/spells.json +1190 -0
  165. package/schema/ua-fast/tables.json +220 -0
  166. package/schema/ua-fast/trapshazards.json +236 -0
  167. package/schema/ua-fast/util.json +4420 -0
  168. package/schema/ua-fast/variantrules.json +74 -0
  169. package/schema/ua-fast/vehicles.json +820 -0
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "fluff-bestiary.json",
4
+ "version": "2.0.0",
5
+ "type": "object",
6
+ "properties": {
7
+ "monsterFluff": {
8
+ "$ref": "../util.json#/$defs/genericFluffArray"
9
+ },
10
+ "_meta": {
11
+ "$ref": "../util.json#/$defs/metaBlock"
12
+ }
13
+ },
14
+ "additionalProperties": false
15
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "foundry-bestiary.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "properties": {
7
+ "monster": {
8
+ "$ref": "../util.json#/$defs/foundrySideDataGenericArray"
9
+ }
10
+ },
11
+ "required": [
12
+ "monster"
13
+ ],
14
+ "additionalProperties": false
15
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }
@@ -0,0 +1,202 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "legendarygroups.json",
4
+ "version": "1.2.3",
5
+ "type": "object",
6
+ "$defs": {
7
+ "legendaryGroupData": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "../util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "../util.json#/$defs/page"
18
+ },
19
+ "additionalSources": {
20
+ "$ref": "../util.json#/$defs/additionalSources"
21
+ },
22
+ "lairActions": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "../entry.json"
26
+ }
27
+ },
28
+ "regionalEffects": {
29
+ "type": "array",
30
+ "items": {
31
+ "$ref": "../entry.json"
32
+ }
33
+ },
34
+ "mythicEncounter": {
35
+ "type": "array",
36
+ "items": {
37
+ "$ref": "../entry.json"
38
+ }
39
+ }
40
+ },
41
+ "additionalProperties": false
42
+ },
43
+ "legendaryGroup": {
44
+ "anyOf": [
45
+ {
46
+ "type": "object",
47
+ "properties": {
48
+ "name": {
49
+ "type": "string"
50
+ },
51
+ "source": {
52
+ "$ref": "../util.json#/$defs/source"
53
+ },
54
+ "page": {
55
+ "$ref": "../util.json#/$defs/page"
56
+ },
57
+ "additionalSources": {
58
+ "$ref": "../util.json#/$defs/additionalSources"
59
+ },
60
+ "lairActions": {
61
+ "type": "array",
62
+ "items": {
63
+ "$ref": "../entry.json"
64
+ }
65
+ },
66
+ "regionalEffects": {
67
+ "type": "array",
68
+ "items": {
69
+ "$ref": "../entry.json"
70
+ }
71
+ },
72
+ "mythicEncounter": {
73
+ "type": "array",
74
+ "items": {
75
+ "$ref": "../entry.json"
76
+ }
77
+ }
78
+ },
79
+ "additionalProperties": false,
80
+ "required": [
81
+ "name",
82
+ "source"
83
+ ]
84
+ },
85
+ {
86
+ "type": "object",
87
+ "properties": {
88
+ "name": {
89
+ "type": "string"
90
+ },
91
+ "source": {
92
+ "$ref": "../util.json#/$defs/source"
93
+ },
94
+ "page": {
95
+ "$ref": "../util.json#/$defs/page"
96
+ },
97
+ "additionalSources": {
98
+ "$ref": "../util.json#/$defs/additionalSources"
99
+ },
100
+ "lairActions": {
101
+ "type": "array",
102
+ "items": {
103
+ "$ref": "../entry.json"
104
+ }
105
+ },
106
+ "regionalEffects": {
107
+ "type": "array",
108
+ "items": {
109
+ "$ref": "../entry.json"
110
+ }
111
+ },
112
+ "mythicEncounter": {
113
+ "type": "array",
114
+ "items": {
115
+ "$ref": "../entry.json"
116
+ }
117
+ },
118
+ "_copy": {
119
+ "type": "object",
120
+ "properties": {
121
+ "name": {
122
+ "type": "string"
123
+ },
124
+ "source": {
125
+ "$ref": "../util.json#/$defs/source"
126
+ },
127
+ "pantheon": {
128
+ "description": "Used in deity data",
129
+ "type": "string"
130
+ },
131
+ "shortName": {
132
+ "description": "Used in subclass data",
133
+ "type": "string"
134
+ },
135
+ "className": {
136
+ "description": "Used in subclass data",
137
+ "type": "string"
138
+ },
139
+ "classSource": {
140
+ "description": "Used in subclass data",
141
+ "$ref": "../util.json#/$defs/source"
142
+ },
143
+ "_mod": {
144
+ "$ref": "../util.json#/$defs/_modObject"
145
+ },
146
+ "_trait": {
147
+ "type": "object",
148
+ "properties": {
149
+ "name": {
150
+ "type": "string"
151
+ },
152
+ "source": {
153
+ "$ref": "../util.json#/$defs/source"
154
+ }
155
+ },
156
+ "required": [
157
+ "name",
158
+ "source"
159
+ ]
160
+ },
161
+ "_preserve": {
162
+ "type": "object",
163
+ "patternProperties": {
164
+ ".*": {
165
+ "const": true
166
+ }
167
+ }
168
+ }
169
+ },
170
+ "required": [
171
+ "name",
172
+ "source"
173
+ ],
174
+ "additionalProperties": false
175
+ }
176
+ },
177
+ "additionalProperties": false,
178
+ "required": [
179
+ "_copy"
180
+ ]
181
+ }
182
+ ]
183
+ }
184
+ },
185
+ "properties": {
186
+ "_meta": {
187
+ "$ref": "../util.json#/$defs/metaBlock"
188
+ },
189
+ "legendaryGroup": {
190
+ "type": "array",
191
+ "minItems": 1,
192
+ "uniqueItems": true,
193
+ "items": {
194
+ "$ref": "#/$defs/legendaryGroup"
195
+ }
196
+ }
197
+ },
198
+ "required": [
199
+ "legendaryGroup"
200
+ ],
201
+ "additionalProperties": false
202
+ }
@@ -0,0 +1,275 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "2.0.0",
4
+ "$id": "template.json",
5
+ "type": "object",
6
+ "$defs": {
7
+ "monsterTemplateData": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "../util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "../util.json#/$defs/page"
18
+ },
19
+ "ref": {
20
+ "type": "string"
21
+ },
22
+ "crMin": {
23
+ "type": "string"
24
+ },
25
+ "crMax": {
26
+ "type": "string"
27
+ },
28
+ "prerequisite": {
29
+ "type": "object",
30
+ "patternProperties": {
31
+ "^.*$": {
32
+ "oneOf": [
33
+ {
34
+ "type": "object",
35
+ "properties": {
36
+ "min": {},
37
+ "max": {}
38
+ },
39
+ "additionalProperties": false
40
+ },
41
+ {
42
+ "type": "object",
43
+ "properties": {
44
+ "oneOf": {
45
+ "type": "array"
46
+ }
47
+ },
48
+ "additionalProperties": false
49
+ }
50
+ ]
51
+ }
52
+ }
53
+ },
54
+ "apply": {
55
+ "type": "object",
56
+ "properties": {
57
+ "_root": {
58
+ "$ref": "bestiary.json#/$defs/creatureData"
59
+ },
60
+ "_mod": {
61
+ "$ref": "../util.json#/$defs/_modObject"
62
+ }
63
+ }
64
+ }
65
+ },
66
+ "additionalProperties": false
67
+ },
68
+ "monsterTemplate": {
69
+ "anyOf": [
70
+ {
71
+ "type": "object",
72
+ "properties": {
73
+ "name": {
74
+ "type": "string"
75
+ },
76
+ "source": {
77
+ "$ref": "../util.json#/$defs/source"
78
+ },
79
+ "page": {
80
+ "$ref": "../util.json#/$defs/page"
81
+ },
82
+ "ref": {
83
+ "type": "string"
84
+ },
85
+ "crMin": {
86
+ "type": "string"
87
+ },
88
+ "crMax": {
89
+ "type": "string"
90
+ },
91
+ "prerequisite": {
92
+ "type": "object",
93
+ "patternProperties": {
94
+ "^.*$": {
95
+ "oneOf": [
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "min": {},
100
+ "max": {}
101
+ },
102
+ "additionalProperties": false
103
+ },
104
+ {
105
+ "type": "object",
106
+ "properties": {
107
+ "oneOf": {
108
+ "type": "array"
109
+ }
110
+ },
111
+ "additionalProperties": false
112
+ }
113
+ ]
114
+ }
115
+ }
116
+ },
117
+ "apply": {
118
+ "type": "object",
119
+ "properties": {
120
+ "_root": {
121
+ "$ref": "bestiary.json#/$defs/creatureData"
122
+ },
123
+ "_mod": {
124
+ "$ref": "../util.json#/$defs/_modObject"
125
+ }
126
+ }
127
+ }
128
+ },
129
+ "additionalProperties": false,
130
+ "required": [
131
+ "name",
132
+ "source",
133
+ "apply"
134
+ ]
135
+ },
136
+ {
137
+ "type": "object",
138
+ "properties": {
139
+ "name": {
140
+ "type": "string"
141
+ },
142
+ "source": {
143
+ "$ref": "../util.json#/$defs/source"
144
+ },
145
+ "page": {
146
+ "$ref": "../util.json#/$defs/page"
147
+ },
148
+ "ref": {
149
+ "type": "string"
150
+ },
151
+ "crMin": {
152
+ "type": "string"
153
+ },
154
+ "crMax": {
155
+ "type": "string"
156
+ },
157
+ "prerequisite": {
158
+ "type": "object",
159
+ "patternProperties": {
160
+ "^.*$": {
161
+ "oneOf": [
162
+ {
163
+ "type": "object",
164
+ "properties": {
165
+ "min": {},
166
+ "max": {}
167
+ },
168
+ "additionalProperties": false
169
+ },
170
+ {
171
+ "type": "object",
172
+ "properties": {
173
+ "oneOf": {
174
+ "type": "array"
175
+ }
176
+ },
177
+ "additionalProperties": false
178
+ }
179
+ ]
180
+ }
181
+ }
182
+ },
183
+ "apply": {
184
+ "type": "object",
185
+ "properties": {
186
+ "_root": {
187
+ "$ref": "bestiary.json#/$defs/creatureData"
188
+ },
189
+ "_mod": {
190
+ "$ref": "../util.json#/$defs/_modObject"
191
+ }
192
+ }
193
+ },
194
+ "_copy": {
195
+ "type": "object",
196
+ "properties": {
197
+ "name": {
198
+ "type": "string"
199
+ },
200
+ "source": {
201
+ "$ref": "../util.json#/$defs/source"
202
+ },
203
+ "pantheon": {
204
+ "description": "Used in deity data",
205
+ "type": "string"
206
+ },
207
+ "shortName": {
208
+ "description": "Used in subclass data",
209
+ "type": "string"
210
+ },
211
+ "className": {
212
+ "description": "Used in subclass data",
213
+ "type": "string"
214
+ },
215
+ "classSource": {
216
+ "description": "Used in subclass data",
217
+ "$ref": "../util.json#/$defs/source"
218
+ },
219
+ "_mod": {
220
+ "$ref": "../util.json#/$defs/_modObject"
221
+ },
222
+ "_trait": {
223
+ "type": "object",
224
+ "properties": {
225
+ "name": {
226
+ "type": "string"
227
+ },
228
+ "source": {
229
+ "$ref": "../util.json#/$defs/source"
230
+ }
231
+ },
232
+ "required": [
233
+ "name",
234
+ "source"
235
+ ]
236
+ },
237
+ "_preserve": {
238
+ "type": "object",
239
+ "patternProperties": {
240
+ ".*": {
241
+ "const": true
242
+ }
243
+ }
244
+ }
245
+ },
246
+ "required": [
247
+ "name",
248
+ "source"
249
+ ],
250
+ "additionalProperties": false
251
+ }
252
+ },
253
+ "additionalProperties": false,
254
+ "required": [
255
+ "_copy"
256
+ ]
257
+ }
258
+ ]
259
+ }
260
+ },
261
+ "properties": {
262
+ "_meta": {
263
+ "$ref": "../util.json#/$defs/metaBlock"
264
+ },
265
+ "monsterTemplate": {
266
+ "type": "array",
267
+ "minItems": 1,
268
+ "uniqueItems": true,
269
+ "items": {
270
+ "$ref": "#/$defs/monsterTemplate"
271
+ }
272
+ }
273
+ },
274
+ "additionalProperties": false
275
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "book.json",
4
+ "version": "1.2.0",
5
+ "type": "object",
6
+ "properties": {
7
+ "data": {
8
+ "$ref": "../util.json#/$defs/adventureBookData"
9
+ }
10
+ },
11
+ "additionalProperties": false
12
+ }
@@ -0,0 +1,141 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "books.json",
4
+ "version": "1.2.9",
5
+ "type": "object",
6
+ "properties": {
7
+ "book": {
8
+ "type": "array",
9
+ "minItems": 1,
10
+ "uniqueItems": true,
11
+ "items": {
12
+ "type": "object",
13
+ "properties": {
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "alias": {
18
+ "$ref": "util.json#/$defs/alias"
19
+ },
20
+ "id": {
21
+ "type": "string",
22
+ "description": "An ID that will be used to refer to this book in tags."
23
+ },
24
+ "source": {
25
+ "$ref": "util.json#/$defs/source"
26
+ },
27
+ "legacy": {
28
+ "$ref": "util.json#/$defs/legacy"
29
+ },
30
+ "group": {
31
+ "description": "The group under which this book should be listed in the navbar.",
32
+ "type": "string",
33
+ "enum": [
34
+ "core",
35
+ "supplement",
36
+ "supplement-alt",
37
+ "setting",
38
+ "prerelease",
39
+ "homebrew",
40
+ "screen",
41
+ "other"
42
+ ]
43
+ },
44
+ "author": {
45
+ "type": "string"
46
+ },
47
+ "published": {
48
+ "type": "string",
49
+ "format": "date",
50
+ "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
51
+ },
52
+ "coverUrl": {
53
+ "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
54
+ "type": "string"
55
+ },
56
+ "contents": {
57
+ "description": "The linked Table of Contents of the rulebook.",
58
+ "type": "array",
59
+ "minItems": 1,
60
+ "items": {
61
+ "type": "object",
62
+ "properties": {
63
+ "name": {
64
+ "type": "string"
65
+ },
66
+ "headers": {
67
+ "type": "array",
68
+ "minItems": 1,
69
+ "items": {
70
+ "oneOf": [
71
+ {
72
+ "type": "string"
73
+ },
74
+ {
75
+ "type": "object",
76
+ "properties": {
77
+ "depth": {
78
+ "type": "integer"
79
+ },
80
+ "header": {
81
+ "type": "string"
82
+ },
83
+ "index": {
84
+ "description": "The relative index of this header in the current chapter, i.e. if \"Treasure\" appears twice and you wish the contents entry to link to the second instance, set the \"index\" to 1.",
85
+ "type": "integer"
86
+ }
87
+ },
88
+ "required": [
89
+ "header"
90
+ ]
91
+ }
92
+ ]
93
+ }
94
+ },
95
+ "ordinal": {
96
+ "type": "object",
97
+ "properties": {
98
+ "type": {
99
+ "type": "string",
100
+ "enum": [
101
+ "chapter",
102
+ "appendix",
103
+ "part",
104
+ "episode",
105
+ "level"
106
+ ]
107
+ },
108
+ "identifier": {
109
+ "type": [
110
+ "integer",
111
+ "string"
112
+ ]
113
+ }
114
+ },
115
+ "additionalProperties": false,
116
+ "required": [
117
+ "type"
118
+ ]
119
+ }
120
+ },
121
+ "additionalProperties": false,
122
+ "required": [
123
+ "name"
124
+ ]
125
+ }
126
+ }
127
+ },
128
+ "additionalProperties": false,
129
+ "required": [
130
+ "name",
131
+ "id",
132
+ "source",
133
+ "contents",
134
+ "published",
135
+ "group"
136
+ ]
137
+ }
138
+ }
139
+ },
140
+ "additionalProperties": false
141
+ }