response-state-schema.json 683 Bytes
Newer Older
Siebers, Michael's avatar
Siebers, Michael committed
1
2
{
    "$schema": "http://json-schema.org/draft-07/schema",
Siebers, Michael's avatar
Siebers, Michael committed
3
    "$id": "response-state-schema.json",
Siebers, Michael's avatar
Siebers, Michael committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    "type": "object",
    "title": "state response",
    "description": "The reply body when querying the server state.",
    "properties": {
        "status": {
            "type": "string"
        },
        "version": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
        }
    },
    "required": [
        "status",
        "version"
19
20
    ],
    "additionalProperties": true
Siebers, Michael's avatar
Siebers, Michael committed
21
}