78 lines
1.4 KiB
JSON
78 lines
1.4 KiB
JSON
{
|
|
"title": "QuizInput",
|
|
"type": "object",
|
|
"properties": {
|
|
"public": {
|
|
"title": "Public",
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"title": "Description",
|
|
"type": "string"
|
|
},
|
|
"questions": {
|
|
"title": "Questions",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/QuizQuestion"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"description",
|
|
"questions"
|
|
],
|
|
"definitions": {
|
|
"QuizAnswer": {
|
|
"title": "QuizAnswer",
|
|
"type": "object",
|
|
"properties": {
|
|
"right": {
|
|
"title": "Right",
|
|
"type": "boolean"
|
|
},
|
|
"answer": {
|
|
"title": "Answer",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"right",
|
|
"answer"
|
|
]
|
|
},
|
|
"QuizQuestion": {
|
|
"title": "QuizQuestion",
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"title": "Question",
|
|
"type": "string"
|
|
},
|
|
"time": {
|
|
"title": "Time",
|
|
"type": "string"
|
|
},
|
|
"answers": {
|
|
"title": "Answers",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/QuizAnswer"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"question",
|
|
"time",
|
|
"answers"
|
|
]
|
|
}
|
|
}
|
|
}
|