From cecfd5da4e817d78f9c1ff7282fb97832af786d5 Mon Sep 17 00:00:00 2001 From: gelbeinhalb Date: Sat, 3 Jan 2026 13:19:58 +0100 Subject: [PATCH] update schema.json to current data import version --- assets/schema.json | 244 +++++++++++++++------------------------------ 1 file changed, 82 insertions(+), 162 deletions(-) diff --git a/assets/schema.json b/assets/schema.json index c80915c..fa748d9 100644 --- a/assets/schema.json +++ b/assets/schema.json @@ -2,178 +2,98 @@ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { - "games": { + "players": { "type": "array", - "items": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "name": { - "type": "string" - }, - "players": { - "type": [ - "array", - "null" - ], - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "createdAt", - "name" - ] - } + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "group": { - "type": [ - "object", - "null" - ], - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "name": { - "type": "string" - }, - "members": { - "type": "array", - "items": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "createdAt", - "name" - ] - } - ] - } - }, - "required": [ - "id", - "createdAt", - "name", - "members" - ] + "createdAt": { + "type": "string" }, - "winner": { - "type": ["object","null"] - }, - "required": [ - "id", - "createdAt", - "name" - ] - } - ] + "name": { + "type": "string" + } + }, + "required": [ + "id", + "createdAt", + "name" + ] + } }, "groups": { "type": "array", - "items": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "name": { - "type": "string" - }, - "members": { - "type": "array", - "items": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "id", - "createdAt", - "name" - ] - } - ] - } + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "required": [ - "id", - "createdAt", - "name", - "members" - ] - } - ] + "name": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "memberIds": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "createdAt", + "memberIds" + ] + } }, - "players": { + "matches": { "type": "array", - "items": [ - { - "type": [ - "object", - "null" - ], - "properties": { - "id": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "name": { + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "groupId": { + "type": "string" + }, + "playerIds": { + "type": "array", + "items": { "type": "string" } }, - "required": [ - "id", - "createdAt", - "name" - ] - } - ] + "winnerId": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "createdAt", + "groupId", + "playerIds", + "winnerId" + ] + } } - } -} - + }, + "required": [ + "players", + "groups", + "matches" + ] +} \ No newline at end of file