From 4552e33cb3df5fabe287d09579c94e354841a4dc Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 12 Aug 2025 10:23:40 +0200 Subject: [PATCH] =?UTF-8?q?schemas/plan=5Fsessions.json=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schemas/plan_sessions.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 schemas/plan_sessions.json diff --git a/schemas/plan_sessions.json b/schemas/plan_sessions.json new file mode 100644 index 0000000..e8e769e --- /dev/null +++ b/schemas/plan_sessions.json @@ -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" } } + } +} \ No newline at end of file