From 03bd6271ff512d24b1abdc23cb070c832ff20ee7 Mon Sep 17 00:00:00 2001 From: Felix Blanke <info@fblanke.de> Date: Tue, 4 Mar 2025 02:48:06 +0100 Subject: [PATCH] Add more fields to schema --- schemas/ak.schema.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/schemas/ak.schema.json b/schemas/ak.schema.json index bd5bc7a..a7428a3 100644 --- a/schemas/ak.schema.json +++ b/schemas/ak.schema.json @@ -42,9 +42,18 @@ "name": {"description": "Name of the AK", "type": "string"}, "head": {"description": "Name of the head of the AK", "type": "string"}, "description": {"description": "Short description of the AK", "type": "string"}, - "reso": {"description": "Whether this AK intends to introduce a resolution", "type": "boolean"} + "reso": {"description": "Whether this AK intends to introduce a resolution", "type": "boolean"}, + "duration_in_hours": {"description": "AK duration in hours", "type": "number"}, + "django_ak_id": { + "$ref": "/schema/common/id.schema.json", + "description": "Unique identifier of the AK object in the django database" + }, + "types": { + "$ref": "/schema/common/constraints.schema.json", + "description": "Types of this AK" + } }, - "required": ["name", "head", "description", "reso"], + "required": ["name", "head", "description", "reso", "duration_in_hours", "django_ak_id", "types"], "additionalProperties": false } }, -- GitLab