-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstate.set.request.json
More file actions
34 lines (34 loc) · 1 KB
/
state.set.request.json
File metadata and controls
34 lines (34 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"$id": "https://gabp.dev/schema/1.0/methods/state.set.request.json",
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "GABP state/set Request",
"description": "Request to set or modify game state",
"type": "object",
"required": ["v", "id", "type", "method", "params"],
"properties": {
"v": { "const": "gabp/1" },
"id": { "type": "string", "format": "uuid" },
"type": { "const": "request" },
"method": { "const": "state/set" },
"params": {
"type": "object",
"required": ["updates"],
"properties": {
"updates": {
"type": "object",
"description": "State updates to apply"
},
"playerId": {
"type": "string",
"description": "Player ID for player-specific updates"
},
"validate": {
"type": "boolean",
"description": "Whether to validate updates before applying"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}