-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathinput.py
More file actions
26 lines (26 loc) · 594 Bytes
/
input.py
File metadata and controls
26 lines (26 loc) · 594 Bytes
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
# Schema to validate input against
SCHEMA = {
'type': 'object',
'properties': {
'start_x': {'type': 'number'},
'start_y': {'type': 'number'},
'end_x': {'type': 'number'},
'end_y': {'type': 'number'},
'world': {
'type': 'array',
'items': {
'type': 'array',
'items': {'enum': [0, 1]},
'minItems': 1,
},
'minItems': 1,
},
},
'required': [
'start_x',
'start_y',
'end_x',
'end_y',
'world',
],
}