Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
88 lines (87 sloc) 2.37 KB
{
"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"
}
}
}
Jump to Line
Something went wrong with that request. Please try again.