aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/json_schemas/src/zero_ex/json_schemas/schemas/relayer_api_error_response_schema.json
blob: be4659b0bd811d542382b607a2c2f27de4d7e823 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
    "id": "/relayerApiErrorResponseSchema",
    "type": "object",
    "properties": {
        "code": { "type": "integer", "minimum": 100, "maximum": 103 },
        "reason": { "type": "string" },
        "validationErrors": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "field": { "type": "string" },
                    "code": { "type": "integer", "minimum": 1000, "maximum": 1006 },
                    "reason": { "type": "string" }
                },
                "required": ["field", "code", "reason"]
            }
        }
    },
    "required": ["code", "reason"]
}