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,10 +169,13 @@
}, },
"scores": { "scores": {
"type": "object", "type": "object",
"items": { "additionalProperties": {
"type": "array", "oneOf": [
"items": { {
"type": "string", "type": "null"
},
{
"type": "object",
"properties": { "properties": {
"roundNumber": { "roundNumber": {
"type": "number" "type": "number"
@@ -177,8 +186,11 @@
"change": { "change": {
"type": "number" "type": "number"
} }
},
"required": ["roundNumber", "score", "change"],
"additionalProperties": false
} }
} ]
} }
}, },
"notes": { "notes": {