5etools-utils 0.9.10 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.9.10",
3
+ "version": "0.9.12",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "deckData": {
@@ -16,6 +16,9 @@
16
16
  "source": {
17
17
  "$ref": "util.json#/$defs/source"
18
18
  },
19
+ "otherSources": {
20
+ "$ref": "util.json#/$defs/otherSources"
21
+ },
19
22
  "page": {
20
23
  "$ref": "util.json#/$defs/page"
21
24
  },
@@ -83,6 +86,9 @@
83
86
  "source": {
84
87
  "$ref": "util.json#/$defs/source"
85
88
  },
89
+ "otherSources": {
90
+ "$ref": "util.json#/$defs/otherSources"
91
+ },
86
92
  "page": {
87
93
  "$ref": "util.json#/$defs/page"
88
94
  },
@@ -153,6 +159,9 @@
153
159
  "source": {
154
160
  "$ref": "util.json#/$defs/source"
155
161
  },
162
+ "otherSources": {
163
+ "$ref": "util.json#/$defs/otherSources"
164
+ },
156
165
  "page": {
157
166
  "$ref": "util.json#/$defs/page"
158
167
  },
@@ -289,6 +298,9 @@
289
298
  "source": {
290
299
  "$ref": "util.json#/$defs/source"
291
300
  },
301
+ "otherSources": {
302
+ "$ref": "util.json#/$defs/otherSources"
303
+ },
292
304
  "set": {
293
305
  "type": "string"
294
306
  },
@@ -336,6 +348,9 @@
336
348
  "source": {
337
349
  "$ref": "util.json#/$defs/source"
338
350
  },
351
+ "otherSources": {
352
+ "$ref": "util.json#/$defs/otherSources"
353
+ },
339
354
  "set": {
340
355
  "type": "string"
341
356
  },
@@ -386,6 +401,9 @@
386
401
  "source": {
387
402
  "$ref": "util.json#/$defs/source"
388
403
  },
404
+ "otherSources": {
405
+ "$ref": "util.json#/$defs/otherSources"
406
+ },
389
407
  "set": {
390
408
  "type": "string"
391
409
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -577,7 +577,7 @@
577
577
  "time": {
578
578
  "type": "array",
579
579
  "items": {
580
- "$ref": "#/$defs/time"
580
+ "$ref": "../util-time.json#/$defs/time"
581
581
  }
582
582
  },
583
583
  "range": {
@@ -1130,7 +1130,7 @@
1130
1130
  "time": {
1131
1131
  "type": "array",
1132
1132
  "items": {
1133
- "$ref": "#/$defs/time"
1133
+ "$ref": "../util-time.json#/$defs/time"
1134
1134
  }
1135
1135
  },
1136
1136
  "range": {
@@ -1717,32 +1717,6 @@
1717
1717
  }
1718
1718
  ]
1719
1719
  },
1720
- "time": {
1721
- "type": "object",
1722
- "properties": {
1723
- "number": {
1724
- "type": "integer"
1725
- },
1726
- "unit": {
1727
- "type": "string",
1728
- "examples": [
1729
- "action",
1730
- "bonus",
1731
- "reaction",
1732
- "round",
1733
- "minute",
1734
- "hour"
1735
- ]
1736
- },
1737
- "condition": {
1738
- "type": "string"
1739
- }
1740
- },
1741
- "required": [
1742
- "unit"
1743
- ],
1744
- "additionalProperties": false
1745
- },
1746
1720
  "duration": {
1747
1721
  "type": "object",
1748
1722
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "deckData": {
@@ -16,6 +16,9 @@
16
16
  "source": {
17
17
  "$ref": "util.json#/$defs/source"
18
18
  },
19
+ "otherSources": {
20
+ "$ref": "util.json#/$defs/otherSources"
21
+ },
19
22
  "page": {
20
23
  "$ref": "util.json#/$defs/page"
21
24
  },
@@ -83,6 +86,9 @@
83
86
  "source": {
84
87
  "$ref": "util.json#/$defs/source"
85
88
  },
89
+ "otherSources": {
90
+ "$ref": "util.json#/$defs/otherSources"
91
+ },
86
92
  "page": {
87
93
  "$ref": "util.json#/$defs/page"
88
94
  },
@@ -153,6 +159,9 @@
153
159
  "source": {
154
160
  "$ref": "util.json#/$defs/source"
155
161
  },
162
+ "otherSources": {
163
+ "$ref": "util.json#/$defs/otherSources"
164
+ },
156
165
  "page": {
157
166
  "$ref": "util.json#/$defs/page"
158
167
  },
@@ -289,6 +298,9 @@
289
298
  "source": {
290
299
  "$ref": "util.json#/$defs/source"
291
300
  },
301
+ "otherSources": {
302
+ "$ref": "util.json#/$defs/otherSources"
303
+ },
292
304
  "set": {
293
305
  "type": "string"
294
306
  },
@@ -336,6 +348,9 @@
336
348
  "source": {
337
349
  "$ref": "util.json#/$defs/source"
338
350
  },
351
+ "otherSources": {
352
+ "$ref": "util.json#/$defs/otherSources"
353
+ },
339
354
  "set": {
340
355
  "type": "string"
341
356
  },
@@ -386,6 +401,9 @@
386
401
  "source": {
387
402
  "$ref": "util.json#/$defs/source"
388
403
  },
404
+ "otherSources": {
405
+ "$ref": "util.json#/$defs/otherSources"
406
+ },
389
407
  "set": {
390
408
  "type": "string"
391
409
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -577,7 +577,7 @@
577
577
  "time": {
578
578
  "type": "array",
579
579
  "items": {
580
- "$ref": "#/$defs/time"
580
+ "$ref": "../util-time.json#/$defs/time"
581
581
  }
582
582
  },
583
583
  "range": {
@@ -1130,7 +1130,7 @@
1130
1130
  "time": {
1131
1131
  "type": "array",
1132
1132
  "items": {
1133
- "$ref": "#/$defs/time"
1133
+ "$ref": "../util-time.json#/$defs/time"
1134
1134
  }
1135
1135
  },
1136
1136
  "range": {
@@ -1717,32 +1717,6 @@
1717
1717
  }
1718
1718
  ]
1719
1719
  },
1720
- "time": {
1721
- "type": "object",
1722
- "properties": {
1723
- "number": {
1724
- "type": "integer"
1725
- },
1726
- "unit": {
1727
- "type": "string",
1728
- "examples": [
1729
- "action",
1730
- "bonus",
1731
- "reaction",
1732
- "round",
1733
- "minute",
1734
- "hour"
1735
- ]
1736
- },
1737
- "condition": {
1738
- "type": "string"
1739
- }
1740
- },
1741
- "required": [
1742
- "unit"
1743
- ],
1744
- "additionalProperties": false
1745
- },
1746
1720
  "duration": {
1747
1721
  "type": "object",
1748
1722
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "deckData": {
@@ -16,6 +16,9 @@
16
16
  "source": {
17
17
  "$ref": "util.json#/$defs/source"
18
18
  },
19
+ "otherSources": {
20
+ "$ref": "util.json#/$defs/otherSources"
21
+ },
19
22
  "page": {
20
23
  "$ref": "util.json#/$defs/page"
21
24
  },
@@ -83,6 +86,9 @@
83
86
  "source": {
84
87
  "$ref": "util.json#/$defs/source"
85
88
  },
89
+ "otherSources": {
90
+ "$ref": "util.json#/$defs/otherSources"
91
+ },
86
92
  "page": {
87
93
  "$ref": "util.json#/$defs/page"
88
94
  },
@@ -153,6 +159,9 @@
153
159
  "source": {
154
160
  "$ref": "util.json#/$defs/source"
155
161
  },
162
+ "otherSources": {
163
+ "$ref": "util.json#/$defs/otherSources"
164
+ },
156
165
  "page": {
157
166
  "$ref": "util.json#/$defs/page"
158
167
  },
@@ -289,6 +298,9 @@
289
298
  "source": {
290
299
  "$ref": "util.json#/$defs/source"
291
300
  },
301
+ "otherSources": {
302
+ "$ref": "util.json#/$defs/otherSources"
303
+ },
292
304
  "set": {
293
305
  "type": "string"
294
306
  },
@@ -336,6 +348,9 @@
336
348
  "source": {
337
349
  "$ref": "util.json#/$defs/source"
338
350
  },
351
+ "otherSources": {
352
+ "$ref": "util.json#/$defs/otherSources"
353
+ },
339
354
  "set": {
340
355
  "type": "string"
341
356
  },
@@ -386,6 +401,9 @@
386
401
  "source": {
387
402
  "$ref": "util.json#/$defs/source"
388
403
  },
404
+ "otherSources": {
405
+ "$ref": "util.json#/$defs/otherSources"
406
+ },
389
407
  "set": {
390
408
  "type": "string"
391
409
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -355,7 +355,7 @@
355
355
  "time": {
356
356
  "type": "array",
357
357
  "items": {
358
- "$ref": "#/$defs/time"
358
+ "$ref": "../util-time.json#/$defs/time"
359
359
  }
360
360
  },
361
361
  "range": {
@@ -686,7 +686,7 @@
686
686
  "time": {
687
687
  "type": "array",
688
688
  "items": {
689
- "$ref": "#/$defs/time"
689
+ "$ref": "../util-time.json#/$defs/time"
690
690
  }
691
691
  },
692
692
  "range": {
@@ -1051,32 +1051,6 @@
1051
1051
  }
1052
1052
  ]
1053
1053
  },
1054
- "time": {
1055
- "type": "object",
1056
- "properties": {
1057
- "number": {
1058
- "type": "integer"
1059
- },
1060
- "unit": {
1061
- "type": "string",
1062
- "enum": [
1063
- "action",
1064
- "bonus",
1065
- "reaction",
1066
- "round",
1067
- "minute",
1068
- "hour"
1069
- ]
1070
- },
1071
- "condition": {
1072
- "type": "string"
1073
- }
1074
- },
1075
- "required": [
1076
- "unit"
1077
- ],
1078
- "additionalProperties": false
1079
- },
1080
1054
  "duration": {
1081
1055
  "type": "object",
1082
1056
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "enum": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "deckData": {
@@ -16,6 +16,9 @@
16
16
  "source": {
17
17
  "$ref": "util.json#/$defs/source"
18
18
  },
19
+ "otherSources": {
20
+ "$ref": "util.json#/$defs/otherSources"
21
+ },
19
22
  "page": {
20
23
  "$ref": "util.json#/$defs/page"
21
24
  },
@@ -83,6 +86,9 @@
83
86
  "source": {
84
87
  "$ref": "util.json#/$defs/source"
85
88
  },
89
+ "otherSources": {
90
+ "$ref": "util.json#/$defs/otherSources"
91
+ },
86
92
  "page": {
87
93
  "$ref": "util.json#/$defs/page"
88
94
  },
@@ -153,6 +159,9 @@
153
159
  "source": {
154
160
  "$ref": "util.json#/$defs/source"
155
161
  },
162
+ "otherSources": {
163
+ "$ref": "util.json#/$defs/otherSources"
164
+ },
156
165
  "page": {
157
166
  "$ref": "util.json#/$defs/page"
158
167
  },
@@ -289,6 +298,9 @@
289
298
  "source": {
290
299
  "$ref": "util.json#/$defs/source"
291
300
  },
301
+ "otherSources": {
302
+ "$ref": "util.json#/$defs/otherSources"
303
+ },
292
304
  "set": {
293
305
  "type": "string"
294
306
  },
@@ -336,6 +348,9 @@
336
348
  "source": {
337
349
  "$ref": "util.json#/$defs/source"
338
350
  },
351
+ "otherSources": {
352
+ "$ref": "util.json#/$defs/otherSources"
353
+ },
339
354
  "set": {
340
355
  "type": "string"
341
356
  },
@@ -386,6 +401,9 @@
386
401
  "source": {
387
402
  "$ref": "util.json#/$defs/source"
388
403
  },
404
+ "otherSources": {
405
+ "$ref": "util.json#/$defs/otherSources"
406
+ },
389
407
  "set": {
390
408
  "type": "string"
391
409
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -355,7 +355,7 @@
355
355
  "time": {
356
356
  "type": "array",
357
357
  "items": {
358
- "$ref": "#/$defs/time"
358
+ "$ref": "../util-time.json#/$defs/time"
359
359
  }
360
360
  },
361
361
  "range": {
@@ -686,7 +686,7 @@
686
686
  "time": {
687
687
  "type": "array",
688
688
  "items": {
689
- "$ref": "#/$defs/time"
689
+ "$ref": "../util-time.json#/$defs/time"
690
690
  }
691
691
  },
692
692
  "range": {
@@ -1051,32 +1051,6 @@
1051
1051
  }
1052
1052
  ]
1053
1053
  },
1054
- "time": {
1055
- "type": "object",
1056
- "properties": {
1057
- "number": {
1058
- "type": "integer"
1059
- },
1060
- "unit": {
1061
- "type": "string",
1062
- "enum": [
1063
- "action",
1064
- "bonus",
1065
- "reaction",
1066
- "round",
1067
- "minute",
1068
- "hour"
1069
- ]
1070
- },
1071
- "condition": {
1072
- "type": "string"
1073
- }
1074
- },
1075
- "required": [
1076
- "unit"
1077
- ],
1078
- "additionalProperties": false
1079
- },
1080
1054
  "duration": {
1081
1055
  "type": "object",
1082
1056
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "enum": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "deckData": {
@@ -16,6 +16,9 @@
16
16
  "source": {
17
17
  "$ref": "util.json#/$defs/source"
18
18
  },
19
+ "otherSources": {
20
+ "$ref": "util.json#/$defs/otherSources"
21
+ },
19
22
  "page": {
20
23
  "$ref": "util.json#/$defs/page"
21
24
  },
@@ -83,6 +86,9 @@
83
86
  "source": {
84
87
  "$ref": "util.json#/$defs/source"
85
88
  },
89
+ "otherSources": {
90
+ "$ref": "util.json#/$defs/otherSources"
91
+ },
86
92
  "page": {
87
93
  "$ref": "util.json#/$defs/page"
88
94
  },
@@ -153,6 +159,9 @@
153
159
  "source": {
154
160
  "$ref": "util.json#/$defs/source"
155
161
  },
162
+ "otherSources": {
163
+ "$ref": "util.json#/$defs/otherSources"
164
+ },
156
165
  "page": {
157
166
  "$ref": "util.json#/$defs/page"
158
167
  },
@@ -289,6 +298,9 @@
289
298
  "source": {
290
299
  "$ref": "util.json#/$defs/source"
291
300
  },
301
+ "otherSources": {
302
+ "$ref": "util.json#/$defs/otherSources"
303
+ },
292
304
  "set": {
293
305
  "type": "string"
294
306
  },
@@ -336,6 +348,9 @@
336
348
  "source": {
337
349
  "$ref": "util.json#/$defs/source"
338
350
  },
351
+ "otherSources": {
352
+ "$ref": "util.json#/$defs/otherSources"
353
+ },
339
354
  "set": {
340
355
  "type": "string"
341
356
  },
@@ -386,6 +401,9 @@
386
401
  "source": {
387
402
  "$ref": "util.json#/$defs/source"
388
403
  },
404
+ "otherSources": {
405
+ "$ref": "util.json#/$defs/otherSources"
406
+ },
389
407
  "set": {
390
408
  "type": "string"
391
409
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -375,7 +375,7 @@
375
375
  "time": {
376
376
  "type": "array",
377
377
  "items": {
378
- "$ref": "#/$defs/time"
378
+ "$ref": "../util-time.json#/$defs/time"
379
379
  }
380
380
  },
381
381
  "range": {
@@ -726,7 +726,7 @@
726
726
  "time": {
727
727
  "type": "array",
728
728
  "items": {
729
- "$ref": "#/$defs/time"
729
+ "$ref": "../util-time.json#/$defs/time"
730
730
  }
731
731
  },
732
732
  "range": {
@@ -1111,32 +1111,6 @@
1111
1111
  }
1112
1112
  ]
1113
1113
  },
1114
- "time": {
1115
- "type": "object",
1116
- "properties": {
1117
- "number": {
1118
- "type": "integer"
1119
- },
1120
- "unit": {
1121
- "type": "string",
1122
- "examples": [
1123
- "action",
1124
- "bonus",
1125
- "reaction",
1126
- "round",
1127
- "minute",
1128
- "hour"
1129
- ]
1130
- },
1131
- "condition": {
1132
- "type": "string"
1133
- }
1134
- },
1135
- "required": [
1136
- "unit"
1137
- ],
1138
- "additionalProperties": false
1139
- },
1140
1114
  "duration": {
1141
1115
  "type": "object",
1142
1116
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "deckData": {
@@ -16,6 +16,9 @@
16
16
  "source": {
17
17
  "$ref": "util.json#/$defs/source"
18
18
  },
19
+ "otherSources": {
20
+ "$ref": "util.json#/$defs/otherSources"
21
+ },
19
22
  "page": {
20
23
  "$ref": "util.json#/$defs/page"
21
24
  },
@@ -83,6 +86,9 @@
83
86
  "source": {
84
87
  "$ref": "util.json#/$defs/source"
85
88
  },
89
+ "otherSources": {
90
+ "$ref": "util.json#/$defs/otherSources"
91
+ },
86
92
  "page": {
87
93
  "$ref": "util.json#/$defs/page"
88
94
  },
@@ -153,6 +159,9 @@
153
159
  "source": {
154
160
  "$ref": "util.json#/$defs/source"
155
161
  },
162
+ "otherSources": {
163
+ "$ref": "util.json#/$defs/otherSources"
164
+ },
156
165
  "page": {
157
166
  "$ref": "util.json#/$defs/page"
158
167
  },
@@ -289,6 +298,9 @@
289
298
  "source": {
290
299
  "$ref": "util.json#/$defs/source"
291
300
  },
301
+ "otherSources": {
302
+ "$ref": "util.json#/$defs/otherSources"
303
+ },
292
304
  "set": {
293
305
  "type": "string"
294
306
  },
@@ -336,6 +348,9 @@
336
348
  "source": {
337
349
  "$ref": "util.json#/$defs/source"
338
350
  },
351
+ "otherSources": {
352
+ "$ref": "util.json#/$defs/otherSources"
353
+ },
339
354
  "set": {
340
355
  "type": "string"
341
356
  },
@@ -386,6 +401,9 @@
386
401
  "source": {
387
402
  "$ref": "util.json#/$defs/source"
388
403
  },
404
+ "otherSources": {
405
+ "$ref": "util.json#/$defs/otherSources"
406
+ },
389
407
  "set": {
390
408
  "type": "string"
391
409
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -375,7 +375,7 @@
375
375
  "time": {
376
376
  "type": "array",
377
377
  "items": {
378
- "$ref": "#/$defs/time"
378
+ "$ref": "../util-time.json#/$defs/time"
379
379
  }
380
380
  },
381
381
  "range": {
@@ -726,7 +726,7 @@
726
726
  "time": {
727
727
  "type": "array",
728
728
  "items": {
729
- "$ref": "#/$defs/time"
729
+ "$ref": "../util-time.json#/$defs/time"
730
730
  }
731
731
  },
732
732
  "range": {
@@ -1111,32 +1111,6 @@
1111
1111
  }
1112
1112
  ]
1113
1113
  },
1114
- "time": {
1115
- "type": "object",
1116
- "properties": {
1117
- "number": {
1118
- "type": "integer"
1119
- },
1120
- "unit": {
1121
- "type": "string",
1122
- "examples": [
1123
- "action",
1124
- "bonus",
1125
- "reaction",
1126
- "round",
1127
- "minute",
1128
- "hour"
1129
- ]
1130
- },
1131
- "condition": {
1132
- "type": "string"
1133
- }
1134
- },
1135
- "required": [
1136
- "unit"
1137
- ],
1138
- "additionalProperties": false
1139
- },
1140
1114
  "duration": {
1141
1115
  "type": "object",
1142
1116
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }