{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "CTT Gateway Status Schema",
    "type": "object",
    "properties": {
        "eui": {
            "type": "string"
        },
        "position": {
            "type": "object",
            "properties": {
                "lat": {
                    "type": "number"
                },
                "lon": {
                    "type": "number"
                }
            },
            "required": [
                "lat",
                "lon"
            ]
        },
        "status": {
            "type": "string",
            "enum": [
                "OK",
                "UNKNOWN"
            ]
        },
        "lastSeen": {
            "type": "string"
        },
        "maxObservedRange": {
            "type": "integer"
        }
    },
    "required": [
        "eui",
        "position",
        "status",
        "lastSeen",
        "maxObservedRange"
    ]
}