fix data import and export
Some checks failed
Pull Request Pipeline / test (pull_request) Successful in 2m8s
Pull Request Pipeline / lint (pull_request) Failing after 2m18s

This commit is contained in:
gelbeinhalb
2026-01-21 15:43:56 +01:00
parent bd5e38a3ca
commit 7339194ba0
5 changed files with 176 additions and 50 deletions

View File

@@ -15,6 +15,43 @@
},
"name": {
"type": "string"
},
"description": {
"type": ["string", "null"]
}
},
"required": [
"id",
"createdAt",
"name"
]
}
},
"games": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"name": {
"type": "string"
},
"ruleset": {
"type": ["string", "null"]
},
"description": {
"type": ["string", "null"]
},
"color": {
"type": ["integer", "null"]
},
"icon": {
"type": ["string", "null"]
}
},
"required": [
@@ -25,6 +62,38 @@
}
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"description": {
"type": ["string", "null"]
},
"memberIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"name",
"createdAt",
"memberIds"
]
}
},
"teams": {
"type": "array",
"items": {
"type": "object",
@@ -67,6 +136,12 @@
"createdAt": {
"type": "string"
},
"gameId": {
"anyOf": [
{"type": "string"},
{"type": "null"}
]
},
"groupId": {
"anyOf": [
{"type": "string"},
@@ -79,7 +154,7 @@
"type": "string"
}
},
"winnerId": {
"notes": {
"anyOf": [
{"type": "string"},
{"type": "null"}
@@ -90,7 +165,6 @@
"id",
"name",
"createdAt",
"groupId",
"playerIds"
]
}
@@ -98,7 +172,9 @@
},
"required": [
"players",
"games",
"groups",
"teams",
"matches"
]
}