| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "Quiz Schema", | |
| "type": "object", | |
| "properties": { | |
| "day": { | |
| "type": "integer", | |
| "description": "شماره روز مربوطه" | |
| }, | |
| "questions": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": { | |
| "type": "integer", | |
| "description": "شناسه یکتا برای سوال" | |
| }, | |
| "question": { | |
| "type": "string", | |
| "description": "متن سوال" | |
| }, | |
| "options": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "minItems": 2, | |
| "description": "گزینههای پاسخ" | |
| }, | |
| "correct_index": { | |
| "type": "integer", | |
| "minimum": 0, | |
| "description": "ایندکس گزینه صحیح" | |
| } | |
| }, | |
| "required": ["id", "question", "options", "correct_index"] | |
| } | |
| } | |
| }, | |
| "required": ["day", "questions"] | |
| } |