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