optolith-database-schema 0.1.19 → 0.1.20

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 CHANGED
@@ -2,6 +2,13 @@
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.1.20](https://github.com/elyukai/optolith-database-schema/compare/v0.1.19...v0.1.20) (2022-03-22)
6
+
7
+
8
+ ### Features
9
+
10
+ * services can be for multiple creature types ([1853485](https://github.com/elyukai/optolith-database-schema/commit/1853485aea88c38339b5ad5d3396aef7dc263888))
11
+
5
12
  ### [0.1.19](https://github.com/elyukai/optolith-database-schema/compare/v0.1.18...v0.1.19) (2022-03-21)
6
13
 
7
14
 
@@ -4,7 +4,7 @@
4
4
  import { Errata } from "./source/_Erratum.js";
5
5
  import { PublicationRefs } from "./source/_PublicationRef.js";
6
6
  /**
7
- * @title Service of Summoned Creatures
7
+ * @title Service of Summoned Creatures and Monstrosities
8
8
  */
9
9
  export declare type Service = {
10
10
  /**
@@ -13,6 +13,16 @@ export declare type Service = {
13
13
  * @minimum 1
14
14
  */
15
15
  id: number;
16
+ /**
17
+ * Defines for which creature type(s) the service is available.
18
+ * @minItems 1
19
+ * @uniqueItems
20
+ */
21
+ availability: ({
22
+ tag: "SummonedCreatures";
23
+ } | {
24
+ tag: "Monstrosities";
25
+ })[];
16
26
  src: PublicationRefs;
17
27
  /**
18
28
  * All translations for the entry, identified by IETF language tag (BCP47).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
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",
@@ -4,7 +4,7 @@
4
4
  "$ref": "#/definitions/Service",
5
5
  "definitions": {
6
6
  "Service": {
7
- "title": "Service of Summoned Creatures",
7
+ "title": "Service of Summoned Creatures and Monstrosities",
8
8
  "type": "object",
9
9
  "properties": {
10
10
  "id": {
@@ -12,6 +12,40 @@
12
12
  "type": "integer",
13
13
  "minimum": 1
14
14
  },
15
+ "availability": {
16
+ "description": "Defines for which creature type(s) the service is available.",
17
+ "type": "array",
18
+ "items": {
19
+ "oneOf": [
20
+ {
21
+ "type": "object",
22
+ "properties": {
23
+ "tag": {
24
+ "const": "SummonedCreatures"
25
+ }
26
+ },
27
+ "required": [
28
+ "tag"
29
+ ],
30
+ "additionalProperties": false
31
+ },
32
+ {
33
+ "type": "object",
34
+ "properties": {
35
+ "tag": {
36
+ "const": "Monstrosities"
37
+ }
38
+ },
39
+ "required": [
40
+ "tag"
41
+ ],
42
+ "additionalProperties": false
43
+ }
44
+ ]
45
+ },
46
+ "minItems": 1,
47
+ "uniqueItems": true
48
+ },
15
49
  "src": {
16
50
  "$ref": "./source/_PublicationRef.schema.json#/definitions/PublicationRefs"
17
51
  },
@@ -49,6 +83,7 @@
49
83
  },
50
84
  "required": [
51
85
  "id",
86
+ "availability",
52
87
  "src",
53
88
  "translations"
54
89
  ],