forked from dresden-weekly/AI-Experiment
/
submission.json-schema
52 lines (52 loc) · 1.65 KB
/
submission.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "touch recorder submission format",
"type": "object",
"required": [ "archive" ],
"properties": {
"archive": {
"type": "array",
"items": {
"description": "a recorded drawing",
"type": "object",
"required": [ "strokes", "description" ],
"properties": {
"strokes": {
"type": "array",
"items": {
"description": "a stroke",
"type": "array",
"items": {
"description": "touch event",
"type": "object",
"required": [ "x", "y", "p", "t" ],
"properties": {
"x": { "type": "number", "description": "horizontal position of touch pixels" },
"y": { "type": "number", "description": "vertical position of touch pixels" },
"p": { "type": "number", "description": "touch pressure (between 0 and 1)" },
"t": { "type": "number", "description": "time inside the drawing (seconds)" }
}
}
}
},
"description": {
"type": "string",
"description": "what is in the drawing"
},
"client": {
"type": "string",
"description": "about the software used for creation"
}
}
}
},
"challenge_id": {
"type": "number",
"description": "info about the requested set from the server"
},
"author": {
"type": "string",
"description": "identifier of the author"
}
}
}