Updated json schmema
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user