From b287f870b159379b5c4363a6252f9bc5589dd5c0 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 12 Nov 2020 09:02:51 +0100 Subject: [PATCH] Add new fields to seating plan schema --- .../static/seating/seating-plan.schema.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/pretix/static/seating/seating-plan.schema.json b/src/pretix/static/seating/seating-plan.schema.json index 663b00ee39..165fe8fee4 100644 --- a/src/pretix/static/seating/seating-plan.schema.json +++ b/src/pretix/static/seating/seating-plan.schema.json @@ -40,6 +40,14 @@ "type": "string", "description": "Name of the zone" }, + "zone_id": { + "type": "string", + "description": "Internal ID of the zone. Currently not used in any way during plan rendering, but only to auto-generate seat GUIDs. May be missing since previous versions of the schema did not include this, in which case a fallback to the name is expected." + }, + "uuid": { + "type": "string", + "description": "Unique ID of this object. May not under any circumstances be duplicate, not even between different object types. Should be an UUID-4. May be missing since previous versions of the schema did not include this." + }, "position": { "$ref": "#/definitions/position" }, "rows": { "type": "array", @@ -71,6 +79,10 @@ "type": ["string", "null"], "description": "Human-readable name for the seats in this. May include %s as a placeholder for the seat_number values. Not used for rendering the plan, but for describing the seats in text." }, + "uuid": { + "type": "string", + "description": "Unique ID of this object. May not under any circumstances be duplicate, not even between different object types. Should be an UUID-4. May be missing since previous versions of the schema did not include this." + }, "seats": { "type": "array", "description": "List of seats in this row", @@ -100,6 +112,10 @@ "type": "string", "description": "Human-readable seat number." }, + "uuid": { + "type": "string", + "description": "Unique ID of this object. May not under any circumstances be duplicate, not even between different object types. Should be an UUID-4. May be missing since previous versions of the schema did not include this." + }, "start_direction": { "type": ["string", "null"], "description": "Declares this seat as a start point for ordered booking in its row. Can contain '<', '>' or '<>'." @@ -130,6 +146,10 @@ "position": { "$ref": "#/definitions/position" }, + "uuid": { + "type": "string", + "description": "Unique ID of this object. May not under any circumstances be duplicate, not even between different object types. Should be an UUID-4. May be missing since previous versions of the schema did not include this." + }, "shape": { "type": "string", "enum": ["polygon", "rectangle", "ellipse", "circle", "text"]