Skip to content

Commit f9de4d2

Browse files
jordanpotterJordan Potter
andauthored
Make JSON formatting consistent (#7)
Co-authored-by: Jordan Potter <me@jordanpotter.com>
1 parent 3ae3576 commit f9de4d2

28 files changed

+1264
-4296
lines changed

_schemas/ancestries.schema.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"$id": "https://daggersearch.com/schemas/ancestries.schema.json",
44
"type": "array",
5-
"items": {
6-
"$ref": "./common/ancestry.schema.json"
7-
}
5+
"items": { "$ref": "./common/ancestry.schema.json" }
86
}

_schemas/armors.schema.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"$id": "https://daggersearch.com/schemas/armors.schema.json",
44
"type": "array",
5-
"items": {
6-
"$ref": "./common/armor.schema.json"
7-
}
5+
"items": { "$ref": "./common/armor.schema.json" }
86
}

_schemas/common/ancestry.schema.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,12 @@
33
"$id": "https://daggersearch.com/schemas/common/ancestry.schema.json",
44
"type": "object",
55
"properties": {
6-
"id": {
7-
"$ref": "./id.schema.json"
8-
},
9-
"name": {
10-
"$ref": "./localized-string.schema.json"
11-
},
12-
"description": {
13-
"$ref": "./localized-string.schema.json"
14-
},
6+
"id": { "$ref": "./id.schema.json" },
7+
"name": { "$ref": "./localized-string.schema.json" },
8+
"description": { "$ref": "./localized-string.schema.json" },
159
"features": {
1610
"type": "array",
17-
"items": {
18-
"$ref": "./feature.schema.json"
19-
}
11+
"items": { "$ref": "./feature.schema.json" }
2012
}
2113
},
2214
"required": ["id", "name", "description", "features"],

_schemas/common/armor.schema.json

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,15 @@
33
"$id": "https://daggersearch.com/schemas/common/armor.schema.json",
44
"type": "object",
55
"properties": {
6-
"id": {
7-
"$ref": "./id.schema.json"
8-
},
9-
"name": {
10-
"$ref": "./localized-string.schema.json"
11-
},
12-
"tier": {
13-
"$ref": "./tier.schema.json"
14-
},
15-
"baseMajorThreshold": {
16-
"type": "integer",
17-
"minimum": 0
18-
},
19-
"baseSevereThreshold": {
20-
"type": "integer",
21-
"minimum": 0
22-
},
23-
"baseScore": {
24-
"type": "integer",
25-
"minimum": 0
26-
},
6+
"id": { "$ref": "./id.schema.json" },
7+
"name": { "$ref": "./localized-string.schema.json" },
8+
"tier": { "$ref": "./tier.schema.json" },
9+
"baseMajorThreshold": { "type": "integer", "minimum": 0 },
10+
"baseSevereThreshold": { "type": "integer", "minimum": 0 },
11+
"baseScore": { "type": "integer", "minimum": 0 },
2712
"features": {
2813
"type": "array",
29-
"items": {
30-
"$ref": "./feature.schema.json"
31-
}
14+
"items": { "$ref": "./feature.schema.json" }
3215
}
3316
},
3417
"required": [

_schemas/common/community.schema.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,16 @@
33
"$id": "https://daggersearch.com/schemas/common/community.schema.json",
44
"type": "object",
55
"properties": {
6-
"id": {
7-
"$ref": "./id.schema.json"
8-
},
9-
"name": {
10-
"$ref": "./localized-string.schema.json"
11-
},
12-
"description": {
13-
"$ref": "./localized-string.schema.json"
14-
},
6+
"id": { "$ref": "./id.schema.json" },
7+
"name": { "$ref": "./localized-string.schema.json" },
8+
"description": { "$ref": "./localized-string.schema.json" },
159
"personalities": {
1610
"type": "array",
17-
"items": {
18-
"$ref": "./localized-string.schema.json"
19-
}
11+
"items": { "$ref": "./localized-string.schema.json" }
2012
},
2113
"features": {
2214
"type": "array",
23-
"items": {
24-
"$ref": "./feature.schema.json"
25-
}
15+
"items": { "$ref": "./feature.schema.json" }
2616
}
2717
},
2818
"required": ["id", "name", "description", "personalities", "features"],

_schemas/common/consumable.schema.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@
33
"$id": "https://daggersearch.com/schemas/common/consumable.schema.json",
44
"type": "object",
55
"properties": {
6-
"id": {
7-
"$ref": "./id.schema.json"
8-
},
9-
"name": {
10-
"$ref": "./localized-string.schema.json"
11-
},
6+
"id": { "$ref": "./id.schema.json" },
7+
"name": { "$ref": "./localized-string.schema.json" },
128
"features": {
139
"type": "array",
14-
"items": {
15-
"$ref": "./feature.schema.json"
16-
}
10+
"items": { "$ref": "./feature.schema.json" }
1711
}
1812
},
1913
"required": ["id", "name", "features"],

_schemas/common/damage.schema.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@
33
"$id": "https://daggersearch.com/schemas/common/damage.schema.json",
44
"type": "object",
55
"properties": {
6-
"dice": {
7-
"$ref": "./dice.schema.json"
8-
},
9-
"modifier": {
10-
"type": "integer"
11-
},
12-
"type": {
13-
"type": "string",
14-
"enum": ["PHYSICAL", "MAGICAL"]
15-
}
6+
"dice": { "$ref": "./dice.schema.json" },
7+
"modifier": { "type": "integer" },
8+
"type": { "type": "string", "enum": ["PHYSICAL", "MAGICAL"] }
169
},
1710
"required": ["dice", "type"],
1811
"additionalProperties": false

_schemas/common/domain-card.schema.json

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,15 @@
33
"$id": "https://daggersearch.com/schemas/common/domain-card.schema.json",
44
"type": "object",
55
"properties": {
6-
"id": {
7-
"$ref": "./id.schema.json"
8-
},
9-
"name": {
10-
"$ref": "./localized-string.schema.json"
11-
},
12-
"domain": {
13-
"$ref": "./domain.schema.json"
14-
},
15-
"type": {
16-
"type": "string",
17-
"enum": ["ABILITY", "SPELL", "GRIMOIRE"]
18-
},
19-
"level": {
20-
"type": "integer",
21-
"minimum": 1,
22-
"maximum": 10
23-
},
24-
"recallCost": {
25-
"type": "integer",
26-
"minimum": 0
27-
},
6+
"id": { "$ref": "./id.schema.json" },
7+
"name": { "$ref": "./localized-string.schema.json" },
8+
"domain": { "$ref": "./domain.schema.json" },
9+
"type": { "type": "string", "enum": ["ABILITY", "SPELL", "GRIMOIRE"] },
10+
"level": { "type": "integer", "minimum": 1, "maximum": 10 },
11+
"recallCost": { "type": "integer", "minimum": 0 },
2812
"features": {
2913
"type": "array",
30-
"items": {
31-
"$ref": "./feature.schema.json"
32-
}
14+
"items": { "$ref": "./feature.schema.json" }
3315
}
3416
},
3517
"required": [

_schemas/common/feature.schema.json

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,8 @@
33
"$id": "https://daggersearch.com/schemas/common/feature.schema.json",
44
"type": "object",
55
"properties": {
6-
"name": {
7-
"$ref": "./localized-string.schema.json"
8-
},
9-
"description": {
10-
"type": "array",
11-
"items": {
12-
"type": "object",
13-
"properties": {
14-
"type": {
15-
"type": "string",
16-
"enum": ["PARAGRAPH", "LIST_ITEM"]
17-
},
18-
"text": {
19-
"$ref": "./localized-string.schema.json"
20-
}
21-
},
22-
"required": ["type", "text"],
23-
"additionalProperties": false
24-
}
25-
}
6+
"name": { "$ref": "./localized-string.schema.json" },
7+
"description": { "$ref": "./description.schema.json" }
268
},
279
"required": ["description"],
2810
"additionalProperties": false

_schemas/common/item.schema.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@
33
"$id": "https://daggersearch.com/schemas/common/item.schema.json",
44
"type": "object",
55
"properties": {
6-
"id": {
7-
"$ref": "./id.schema.json"
8-
},
9-
"name": {
10-
"$ref": "./localized-string.schema.json"
11-
},
6+
"id": { "$ref": "./id.schema.json" },
7+
"name": { "$ref": "./localized-string.schema.json" },
128
"features": {
139
"type": "array",
14-
"items": {
15-
"$ref": "./feature.schema.json"
16-
}
10+
"items": { "$ref": "./feature.schema.json" }
1711
}
1812
},
1913
"required": ["id", "name", "features"],

0 commit comments

Comments
 (0)