Mhdeusi commited on
Commit
ff4c15f
·
verified ·
1 Parent(s): 73f98f7

Update schema/exercise_schema.json

Browse files
Files changed (1) hide show
  1. schema/exercise_schema.json +36 -5
schema/exercise_schema.json CHANGED
@@ -1,6 +1,37 @@
1
  {
2
- "question": "string (الزامی)",
3
- "keywords": ["string", "string"],
4
- "min_length": "integer (اختیاری، حداقل طول پاسخ)",
5
- "reward": "integer (اختیاری، مقدار امتیاز یا پاداش)"
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
+ }