schemas/plan_sessions.json hinzugefügt
This commit is contained in:
parent
c53aade360
commit
4552e33cb3
26
schemas/plan_sessions.json
Normal file
26
schemas/plan_sessions.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://example.local/schemas/plan_sessions.json",
|
||||
"title": "PlanSession",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "plan_id", "executed_at", "location", "coach", "group_label", "feedback", "used_equipment"],
|
||||
"properties": {
|
||||
"id": { "type": "string" },
|
||||
"plan_id": { "type": "string" },
|
||||
"executed_at": { "type": "string", "format": "date-time" },
|
||||
"location": { "type": "string" },
|
||||
"coach": { "type": "string" },
|
||||
"group_label": { "type": "string" },
|
||||
"feedback": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["rating", "notes"],
|
||||
"properties": {
|
||||
"rating": { "type": "integer", "minimum": 1, "maximum": 5 },
|
||||
"notes": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"used_equipment": { "type": "array", "items": { "type": "string" } }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user