From fcc0e2bf74da7d039b50885943df37007a7e5964 Mon Sep 17 00:00:00 2001
From: Felix Blanke <info@fblanke.de>
Date: Tue, 4 Mar 2025 02:48:25 +0100
Subject: [PATCH] Rule out 0 capacity

---
 schemas/room.schema.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/schemas/room.schema.json b/schemas/room.schema.json
index 3d921c1..a4ab82d 100644
--- a/schemas/room.schema.json
+++ b/schemas/room.schema.json
@@ -11,7 +11,9 @@
     "capacity": {
       "description": "The maximum number of total participants. Unbounded capacity is represented by -1",
       "type": "integer",
-      "minimum": -1
+      "anyOf": [
+        {"minimum": 1}, {"const": -1}
+      ]
     },
     "fulfilled_room_constraints": {
       "$ref": "/schema/common/constraints.schema.json",
-- 
GitLab