optolith-database-schema 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/types/_Activatable.d.ts +1 -4
- package/lib/types/_Prerequisite.d.ts +1 -1
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +1 -1
- package/package.json +1 -1
- package/schema/_Activatable.schema.json +2 -2
- package/schema/_Prerequisite.schema.json +192 -201
- package/schema/specialAbility/CeremonialItemSpecialAbility.schema.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.1](https://github.com/elyukai/optolith-database-schema/compare/v0.4.0...v0.4.1) (2022-08-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* not all ceremonial item special abilities have an aspect ([d99fc59](https://github.com/elyukai/optolith-database-schema/commit/d99fc59d786bef8951edd45db0a0c2d43c4a5ac3))
|
|
11
|
+
* require nested properties of enums with associated values ([ed8046e](https://github.com/elyukai/optolith-database-schema/commit/ed8046ea07acd5ae2b98bc901f688b4612d45ba6))
|
|
12
|
+
|
|
5
13
|
## [0.4.0](https://github.com/elyukai/optolith-database-schema/compare/v0.3.0...v0.4.0) (2022-08-01)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -540,7 +540,7 @@ export declare type ArcaneEnergyCost = {
|
|
|
540
540
|
disjunction: ArcaneEnergyCostDisjunction;
|
|
541
541
|
} | {
|
|
542
542
|
tag: "None";
|
|
543
|
-
none
|
|
543
|
+
none: NoArcaneEnergyCost;
|
|
544
544
|
} | {
|
|
545
545
|
tag: "Variable";
|
|
546
546
|
variable: {};
|
|
@@ -723,9 +723,6 @@ export declare type ArcaneEnergyCostDisjunctionOptionTranslation = {
|
|
|
723
723
|
*/
|
|
724
724
|
note?: ResponsiveTextOptional;
|
|
725
725
|
};
|
|
726
|
-
/**
|
|
727
|
-
* @minProperties 1
|
|
728
|
-
*/
|
|
729
726
|
export declare type NoArcaneEnergyCost = {
|
|
730
727
|
/**
|
|
731
728
|
* All translations for the entry, identified by IETF language tag
|
|
@@ -51,7 +51,7 @@ export declare type PrerequisitesByLevel<T> = {
|
|
|
51
51
|
plain: PlainPrerequisites<T>;
|
|
52
52
|
} | {
|
|
53
53
|
tag: "ByLevel";
|
|
54
|
-
by_level: PrerequisitesForLevels<T
|
|
54
|
+
by_level: PrerequisitesForLevels<T>;
|
|
55
55
|
};
|
|
56
56
|
export declare type DerivedCharacteristicPrerequisites = SimplePrerequisites<DerivedCharacteristicPrerequisiteGroup>;
|
|
57
57
|
export declare type PublicationPrerequisites = SimplePrerequisites<PublicationPrerequisiteGroup>;
|
|
@@ -16,7 +16,7 @@ export declare type CeremonialItemSpecialAbility = {
|
|
|
16
16
|
skill_applications?: Activatable.SkillApplications;
|
|
17
17
|
skill_uses?: Activatable.SkillUses;
|
|
18
18
|
maximum?: Activatable.Maximum;
|
|
19
|
-
aspect
|
|
19
|
+
aspect?: Activatable.Aspect;
|
|
20
20
|
prerequisites?: GeneralPrerequisites;
|
|
21
21
|
ap_value: Activatable.AdventurePointsValue;
|
|
22
22
|
src: PublicationRefs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Definitions and utilities for the flat-file database of Optolith, a character creation tool for the Pen and Paper RPG “The Dark Eye 5”, and its external integrations into other software.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tde",
|
|
@@ -1021,7 +1021,8 @@
|
|
|
1021
1021
|
}
|
|
1022
1022
|
},
|
|
1023
1023
|
"required": [
|
|
1024
|
-
"tag"
|
|
1024
|
+
"tag",
|
|
1025
|
+
"none"
|
|
1025
1026
|
],
|
|
1026
1027
|
"additionalProperties": false
|
|
1027
1028
|
},
|
|
@@ -1330,7 +1331,6 @@
|
|
|
1330
1331
|
}
|
|
1331
1332
|
},
|
|
1332
1333
|
"required": [],
|
|
1333
|
-
"minProperties": 1,
|
|
1334
1334
|
"additionalProperties": false
|
|
1335
1335
|
},
|
|
1336
1336
|
"NoArcaneEnergyCostTranslation": {
|
|
@@ -219,76 +219,73 @@
|
|
|
219
219
|
"by_level": {
|
|
220
220
|
"type": "array",
|
|
221
221
|
"items": {
|
|
222
|
-
"type": "
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
{
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
"
|
|
246
|
-
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"items": {
|
|
250
|
-
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/GeneralPrerequisiteGroup"
|
|
251
|
-
},
|
|
252
|
-
"minItems": 2
|
|
222
|
+
"type": "object",
|
|
223
|
+
"properties": {
|
|
224
|
+
"level": {
|
|
225
|
+
"type": "integer",
|
|
226
|
+
"minimum": 1
|
|
227
|
+
},
|
|
228
|
+
"prerequisites": {
|
|
229
|
+
"type": "array",
|
|
230
|
+
"items": {
|
|
231
|
+
"oneOf": [
|
|
232
|
+
{
|
|
233
|
+
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/GeneralPrerequisiteGroup"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {
|
|
238
|
+
"tag": {
|
|
239
|
+
"const": "Group"
|
|
240
|
+
},
|
|
241
|
+
"group": {
|
|
242
|
+
"description": "A prerequisite group has no influence on validation logic. It serves as a\nsingle unit for displaying purposes, where the source uses a prerequisites\nitem that cannot be represented as a single prerequisite.",
|
|
243
|
+
"type": "object",
|
|
244
|
+
"properties": {
|
|
245
|
+
"list": {
|
|
246
|
+
"type": "array",
|
|
247
|
+
"items": {
|
|
248
|
+
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/GeneralPrerequisiteGroup"
|
|
253
249
|
},
|
|
254
|
-
"
|
|
255
|
-
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
256
|
-
"type": "object",
|
|
257
|
-
"patternProperties": {
|
|
258
|
-
"^[a-z]{2}-[A-Z]{2}$": {
|
|
259
|
-
"$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
"minProperties": 1,
|
|
263
|
-
"additionalProperties": false
|
|
264
|
-
}
|
|
250
|
+
"minItems": 2
|
|
265
251
|
},
|
|
266
|
-
"
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
252
|
+
"translations": {
|
|
253
|
+
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
254
|
+
"type": "object",
|
|
255
|
+
"patternProperties": {
|
|
256
|
+
"^[a-z]{2}-[A-Z]{2}$": {
|
|
257
|
+
"$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"minProperties": 1,
|
|
261
|
+
"additionalProperties": false
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"required": [
|
|
265
|
+
"list",
|
|
266
|
+
"translations"
|
|
267
|
+
],
|
|
268
|
+
"additionalProperties": false
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": [
|
|
272
|
+
"tag",
|
|
273
|
+
"group"
|
|
274
|
+
],
|
|
275
|
+
"additionalProperties": false
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"minItems": 1
|
|
280
|
+
}
|
|
289
281
|
},
|
|
290
|
-
"
|
|
291
|
-
|
|
282
|
+
"required": [
|
|
283
|
+
"level",
|
|
284
|
+
"prerequisites"
|
|
285
|
+
],
|
|
286
|
+
"additionalProperties": false
|
|
287
|
+
},
|
|
288
|
+
"minItems": 1
|
|
292
289
|
}
|
|
293
290
|
},
|
|
294
291
|
"required": [
|
|
@@ -446,76 +443,73 @@
|
|
|
446
443
|
"by_level": {
|
|
447
444
|
"type": "array",
|
|
448
445
|
"items": {
|
|
449
|
-
"type": "
|
|
450
|
-
"
|
|
451
|
-
"
|
|
452
|
-
|
|
453
|
-
"
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
{
|
|
465
|
-
"
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
"
|
|
471
|
-
|
|
472
|
-
"
|
|
473
|
-
|
|
474
|
-
"
|
|
475
|
-
"
|
|
476
|
-
"items": {
|
|
477
|
-
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/AdvantageDisadvantagePrerequisiteGroup"
|
|
478
|
-
},
|
|
479
|
-
"minItems": 2
|
|
446
|
+
"type": "object",
|
|
447
|
+
"properties": {
|
|
448
|
+
"level": {
|
|
449
|
+
"type": "integer",
|
|
450
|
+
"minimum": 1
|
|
451
|
+
},
|
|
452
|
+
"prerequisites": {
|
|
453
|
+
"type": "array",
|
|
454
|
+
"items": {
|
|
455
|
+
"oneOf": [
|
|
456
|
+
{
|
|
457
|
+
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/AdvantageDisadvantagePrerequisiteGroup"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "object",
|
|
461
|
+
"properties": {
|
|
462
|
+
"tag": {
|
|
463
|
+
"const": "Group"
|
|
464
|
+
},
|
|
465
|
+
"group": {
|
|
466
|
+
"description": "A prerequisite group has no influence on validation logic. It serves as a\nsingle unit for displaying purposes, where the source uses a prerequisites\nitem that cannot be represented as a single prerequisite.",
|
|
467
|
+
"type": "object",
|
|
468
|
+
"properties": {
|
|
469
|
+
"list": {
|
|
470
|
+
"type": "array",
|
|
471
|
+
"items": {
|
|
472
|
+
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/AdvantageDisadvantagePrerequisiteGroup"
|
|
480
473
|
},
|
|
481
|
-
"
|
|
482
|
-
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
483
|
-
"type": "object",
|
|
484
|
-
"patternProperties": {
|
|
485
|
-
"^[a-z]{2}-[A-Z]{2}$": {
|
|
486
|
-
"$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
"minProperties": 1,
|
|
490
|
-
"additionalProperties": false
|
|
491
|
-
}
|
|
474
|
+
"minItems": 2
|
|
492
475
|
},
|
|
493
|
-
"
|
|
494
|
-
"
|
|
495
|
-
"
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
476
|
+
"translations": {
|
|
477
|
+
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
478
|
+
"type": "object",
|
|
479
|
+
"patternProperties": {
|
|
480
|
+
"^[a-z]{2}-[A-Z]{2}$": {
|
|
481
|
+
"$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"minProperties": 1,
|
|
485
|
+
"additionalProperties": false
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"required": [
|
|
489
|
+
"list",
|
|
490
|
+
"translations"
|
|
491
|
+
],
|
|
492
|
+
"additionalProperties": false
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"required": [
|
|
496
|
+
"tag",
|
|
497
|
+
"group"
|
|
498
|
+
],
|
|
499
|
+
"additionalProperties": false
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
"minItems": 1
|
|
504
|
+
}
|
|
516
505
|
},
|
|
517
|
-
"
|
|
518
|
-
|
|
506
|
+
"required": [
|
|
507
|
+
"level",
|
|
508
|
+
"prerequisites"
|
|
509
|
+
],
|
|
510
|
+
"additionalProperties": false
|
|
511
|
+
},
|
|
512
|
+
"minItems": 1
|
|
519
513
|
}
|
|
520
514
|
},
|
|
521
515
|
"required": [
|
|
@@ -953,76 +947,73 @@
|
|
|
953
947
|
"by_level": {
|
|
954
948
|
"type": "array",
|
|
955
949
|
"items": {
|
|
956
|
-
"type": "
|
|
957
|
-
"
|
|
958
|
-
"
|
|
959
|
-
|
|
960
|
-
"
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
"
|
|
965
|
-
"
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
{
|
|
972
|
-
"
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
"
|
|
978
|
-
|
|
979
|
-
"
|
|
980
|
-
|
|
981
|
-
"
|
|
982
|
-
"
|
|
983
|
-
"items": {
|
|
984
|
-
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/LanguagePrerequisiteGroup"
|
|
985
|
-
},
|
|
986
|
-
"minItems": 2
|
|
950
|
+
"type": "object",
|
|
951
|
+
"properties": {
|
|
952
|
+
"level": {
|
|
953
|
+
"type": "integer",
|
|
954
|
+
"minimum": 1
|
|
955
|
+
},
|
|
956
|
+
"prerequisites": {
|
|
957
|
+
"type": "array",
|
|
958
|
+
"items": {
|
|
959
|
+
"oneOf": [
|
|
960
|
+
{
|
|
961
|
+
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/LanguagePrerequisiteGroup"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"type": "object",
|
|
965
|
+
"properties": {
|
|
966
|
+
"tag": {
|
|
967
|
+
"const": "Group"
|
|
968
|
+
},
|
|
969
|
+
"group": {
|
|
970
|
+
"description": "A prerequisite group has no influence on validation logic. It serves as a\nsingle unit for displaying purposes, where the source uses a prerequisites\nitem that cannot be represented as a single prerequisite.",
|
|
971
|
+
"type": "object",
|
|
972
|
+
"properties": {
|
|
973
|
+
"list": {
|
|
974
|
+
"type": "array",
|
|
975
|
+
"items": {
|
|
976
|
+
"$ref": "./prerequisites/PrerequisiteGroups.schema.json#/$defs/LanguagePrerequisiteGroup"
|
|
987
977
|
},
|
|
988
|
-
"
|
|
989
|
-
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
990
|
-
"type": "object",
|
|
991
|
-
"patternProperties": {
|
|
992
|
-
"^[a-z]{2}-[A-Z]{2}$": {
|
|
993
|
-
"$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
|
|
994
|
-
}
|
|
995
|
-
},
|
|
996
|
-
"minProperties": 1,
|
|
997
|
-
"additionalProperties": false
|
|
998
|
-
}
|
|
978
|
+
"minItems": 2
|
|
999
979
|
},
|
|
1000
|
-
"
|
|
1001
|
-
"
|
|
1002
|
-
"
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
980
|
+
"translations": {
|
|
981
|
+
"description": "All translations for the entry, identified by IETF language tag (BCP47).",
|
|
982
|
+
"type": "object",
|
|
983
|
+
"patternProperties": {
|
|
984
|
+
"^[a-z]{2}-[A-Z]{2}$": {
|
|
985
|
+
"$ref": "./_NonEmptyString.schema.json#/$defs/NonEmptyString"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"minProperties": 1,
|
|
989
|
+
"additionalProperties": false
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
"required": [
|
|
993
|
+
"list",
|
|
994
|
+
"translations"
|
|
995
|
+
],
|
|
996
|
+
"additionalProperties": false
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"required": [
|
|
1000
|
+
"tag",
|
|
1001
|
+
"group"
|
|
1002
|
+
],
|
|
1003
|
+
"additionalProperties": false
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
|
+
"minItems": 1
|
|
1008
|
+
}
|
|
1023
1009
|
},
|
|
1024
|
-
"
|
|
1025
|
-
|
|
1010
|
+
"required": [
|
|
1011
|
+
"level",
|
|
1012
|
+
"prerequisites"
|
|
1013
|
+
],
|
|
1014
|
+
"additionalProperties": false
|
|
1015
|
+
},
|
|
1016
|
+
"minItems": 1
|
|
1026
1017
|
}
|
|
1027
1018
|
},
|
|
1028
1019
|
"required": [
|