-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Map.json.schema
66 lines (66 loc) · 1.62 KB
/
Map.json.schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://csharpermantle.github.io/periotris/schema/Map.schema.json",
"title": "Map",
"description": "A map used in Periotris game",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier of this map",
"type": "string"
},
"map": {
"description": "The rows of the map",
"type": "array",
"items": {
"description": "A row of the map",
"type": "array",
"items": {
"description": "A cell of the map",
"type": "object",
"properties": {
"atomicNumber": {
"description": "The atomic number of the element placed in the cell, negative if it represents a header",
"type": "integer"
},
"filled": {
"description": "Whether the cell is filled or empty",
"type": "boolean"
}
},
"required": [
"atomicNumber",
"filled"
]
},
"uniqueItems": true
},
"uniqueItems": true
},
"playAreaSize": {
"description": "The size of the map",
"type": "object",
"properties": {
"height": {
"description": "The height of the map",
"type": "integer",
"minimum": 0
},
"width": {
"description": "The width of the map",
"type": "integer",
"minimum": 0
}
},
"required": [
"height",
"width"
]
}
},
"required": [
"id",
"map",
"playAreaSize"
]
}