-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstate.get.request.json
More file actions
30 lines (30 loc) · 938 Bytes
/
state.get.request.json
File metadata and controls
30 lines (30 loc) · 938 Bytes
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
{
"$id": "https://gabp.dev/schema/1.0/methods/state.get.request.json",
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "GABP state/get Request",
"description": "Request to get current game state or specific state components",
"type": "object",
"required": ["v", "id", "type", "method"],
"properties": {
"v": { "const": "gabp/1" },
"id": { "type": "string", "format": "uuid" },
"type": { "const": "request" },
"method": { "const": "state/get" },
"params": {
"type": "object",
"properties": {
"components": {
"type": "array",
"items": { "type": "string" },
"description": "Array of state component names to retrieve"
},
"playerId": {
"type": "string",
"description": "Player ID for player-specific state"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}