Updated json schmema

This commit is contained in:
2026-04-21 23:19:46 +02:00
parent d381036849
commit bdb33f1ec8

View File

@@ -147,13 +147,19 @@
"type": "string" "type": "string"
}, },
"endedAt": { "endedAt": {
"type": ["string", "null"] "type": [
"string",
"null"
]
}, },
"gameId": { "gameId": {
"type": "string" "type": "string"
}, },
"groupId": { "groupId": {
"type": ["string", "null"] "type": [
"string",
"null"
]
}, },
"playerIds": { "playerIds": {
"type": "array", "type": "array",
@@ -163,22 +169,28 @@
}, },
"scores": { "scores": {
"type": "object", "type": "object",
"items": { "additionalProperties": {
"type": "array", "oneOf": [
"items": { {
"type": "string", "type": "null"
"properties": { },
"roundNumber": { {
"type": "number" "type": "object",
"properties": {
"roundNumber": {
"type": "number"
},
"score": {
"type": "number"
},
"change": {
"type": "number"
}
}, },
"score": { "required": ["roundNumber", "score", "change"],
"type": "number" "additionalProperties": false
},
"change": {
"type": "number"
}
} }
} ]
} }
}, },
"notes": { "notes": {