summaryrefslogtreecommitdiffstats
path: root/verigraph/jsonschema/endhost.json
blob: 37c88813cda9050b83c4edde060323a64baef842 (plain)
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
35
36
37
38
39
40
41
42
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Endhost",
    "description": "Polito Endhost",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "body": {
                "description": "HTTP body",
                "type": "string"
            },
            "sequence": {
                "description": "Sequence number",
                "type": "integer"
            },
            "protocol": {
                "description": "Protocol",
                "type": "string",
                "enum": ["HTTP_REQUEST", "HTTP_RESPONSE", "POP3_REQUEST", "POP3_RESPONSE"]
            },
            "email_from": {
                "description": "E-mail sender",
                "type": "string"
            },
            "url": {
                "description": "URL",
                "type": "string"
            },
            "options": {
                "description": "Options",
                "type": "string"
            },
            "destination": {
                "description": "Destination node",
                "type": "string"
            }
        },
        "additionalProperties": false
    },
    "maxItems": 1
}