Files
cabo-counter/assets/game_list-schema.json
2025-07-07 23:19:30 +02:00

97 lines
2.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Generated schema for the cabo counter game data",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"gameTitle": {
"type": "string"
},
"players": {
"type": "array",
"items": {
"type": "string"
}
},
"pointLimit": {
"type": "number"
},
"caboPenalty": {
"type": "number"
},
"isPointsLimitEnabled": {
"type": "boolean"
},
"isGameFinished": {
"type": "boolean"
},
"winner": {
"type": "string"
},
"roundNumber": {
"type": "number"
},
"playerScores": {
"type": "array",
"items": {
"type": "number"
}
},
"roundList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"roundNum": {
"type": "number"
},
"caboPlayerIndex": {
"type": "number"
},
"kamikazePlayerIndex": {
"type": ["number", "null"]
},
"scores": {
"type": "array",
"items": {
"type": "number"
}
},
"scoreUpdates": {
"type": "array",
"items": {
"type": "number"
}
}
},
"required": [
"roundNum",
"caboPlayerIndex",
"scores",
"scoreUpdates"
]
}
}
},
"required": [
"createdAt",
"gameTitle",
"players",
"pointLimit",
"caboPenalty",
"isPointsLimitEnabled",
"isGameFinished",
"winner",
"roundNumber",
"playerScores",
"roundList"
]
}
}