Update schema/quiz_schema.json
Browse files- schema/quiz_schema.json +41 -4
schema/quiz_schema.json
CHANGED
|
@@ -1,5 +1,42 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
| 3 |
+
"title": "Quiz Schema",
|
| 4 |
+
"type": "object",
|
| 5 |
+
"properties": {
|
| 6 |
+
"day": {
|
| 7 |
+
"type": "integer",
|
| 8 |
+
"description": "شماره روز مربوطه"
|
| 9 |
+
},
|
| 10 |
+
"questions": {
|
| 11 |
+
"type": "array",
|
| 12 |
+
"items": {
|
| 13 |
+
"type": "object",
|
| 14 |
+
"properties": {
|
| 15 |
+
"id": {
|
| 16 |
+
"type": "integer",
|
| 17 |
+
"description": "شناسه یکتا برای سوال"
|
| 18 |
+
},
|
| 19 |
+
"question": {
|
| 20 |
+
"type": "string",
|
| 21 |
+
"description": "متن سوال"
|
| 22 |
+
},
|
| 23 |
+
"options": {
|
| 24 |
+
"type": "array",
|
| 25 |
+
"items": {
|
| 26 |
+
"type": "string"
|
| 27 |
+
},
|
| 28 |
+
"minItems": 2,
|
| 29 |
+
"description": "گزینههای پاسخ"
|
| 30 |
+
},
|
| 31 |
+
"correct_index": {
|
| 32 |
+
"type": "integer",
|
| 33 |
+
"minimum": 0,
|
| 34 |
+
"description": "ایندکس گزینه صحیح"
|
| 35 |
+
}
|
| 36 |
+
},
|
| 37 |
+
"required": ["id", "question", "options", "correct_index"]
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"required": ["day", "questions"]
|
| 42 |
+
}
|