p22.10/data/students/_class_json_schema.json

105 lines
2.8 KiB
JSON
Raw Normal View History

2024-10-16 08:40:14 +00:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"header": {
"type": "object",
"properties": {
"school": {
"type": "string"
},
"city": {
"type": "string"
},
"year": {
"type": "string"
},
"semester": {
"type": "string"
},
"subject": {
"type": "string"
},
"level": {
"type": "string"
},
"publisher": {
"type": "string"
},
"class": {
"type": "string"
},
"group": {
"type": "string"
},
"profile": {
"type": "string"
},
"max_points": {
"type": "integer"
},
"teacher": {
"type": "string"
}
},
"required": [
"school",
"city",
"year",
"semester",
"subject",
"class",
"group",
"profile",
"teacher"
]
},
"students": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"name": {
"type": "string"
},
"grade": {
"type": [
"string",
"null"
]
},
"points": {
"type": [
"number",
"null"
]
},
"status": {
"type": "integer"
}
},
"required": [
"id",
"first_name",
"last_name",
"name",
"grade",
"status"
]
}
}
},
"required": [
"header",
"students"
]
}