-
Notifications
You must be signed in to change notification settings - Fork 27
/
question.json
87 lines (87 loc) · 2.37 KB
/
question.json
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"type": "object",
"title": "Question",
"description":"A question",
"name": "Question",
"properties":{
"category":{
"type":"string",
"description":"The questions main sub_category",
"maxLength": 30,
"enum": ["programming", "culture", "backend", "frontend", "design", "startup & founding", "social" ],
"required":true
},
"sub_category":{
"type":"string",
"description":"The questions main sub_category",
"maxLength": 30,
"enum": ["algorithms", "api", "bash", "C", "couchdb","css", "culture", "data", "encoding", "flash", "graphics", "haskell", "html","http","javascript", "php", "python","rails","ruby","regex" ],
"required":true
},
"nerd_level":{
"type":"number",
"description":"Difficulty level, 0=easy -> 5=supernerdy.",
"minimum": 0,
"maximum": 5,
"required":true
},
"text":{
"type":"string",
"description":"The question",
"maxLength": 160,
"required":true
},
"a1":{
"type":"string",
"description":"An answer",
"maxLength": 100,
"required":true
},
"a2":{
"type":"string",
"description":"Second multiple choice answer",
"maxLength": 100,
"required":true
},
"a3":{
"type":"string",
"description":"Third multiple choice answer",
"maxLength": 100,
"required":true
},
"a4":{
"type":"string",
"description":"Fourth multiple choice answer",
"maxLength": 100,
"required":true
},
"right_answer":{
"type":"string",
"description":"The right answer, defaults to first answer if no multiple choice is given",
"enum": ["a1","a2","a3","a4"],
"default": "a1"
},
"created_at": {
"description": "Date the question was created. Never changes afterwards YYYY-MM-DD",
"format":"date",
"readonly":true,
"type":"string"
},
"creator": {
"description": "Name of the person who supplied the question",
"readonly":true,
"type":"string",
"required":true
},
"creator_twitter": {
"description": "Twitter handle of the person who supplied the question",
"readonly":true,
"type":"string"
},
"creator_github": {
"description": "Github username of the person who supplied the question",
"readonly":true,
"type":"string"
}
}
}