JSON Import für Testdaten & Funktion zum Löschen aller Daten #33

Merged
flixcoo merged 44 commits from feature/31-json-import-fuer-testdaten into development 2025-11-22 16:47:15 +00:00
Showing only changes of commit 42ce69f4d3 - Show all commits

View File

@@ -0,0 +1,137 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"games": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"players": {
"type": "null"
},
"group": {
"type": "null"
},
"winner": {
"type": "string"
flixcoo marked this conversation as resolved Outdated

alles was null ist, ist forced null, d.h. es muss null sein, ist hier aber ja nicht richtig

alles was null ist, ist forced null, d.h. es muss null sein, ist hier aber ja nicht richtig
}
},
"required": [
"id",
"name",
"players",
"group",
"winner"
]
}
]
},
"groups": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"members": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
]
}
},
"required": [
"id",
"name",
"members"
]
}
]
},
"players": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
]
}
},
"required": [
"games",
"groups",
"players"
]
}