{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Fibaro Home Center Login JSON Schema",
    "name": "login",
    "type": "object",
    "properties": {
        "status": {
            "description": "User Authorized Flag",
            "type": "boolean"
        },
        "userID": {
            "description": "Identifier for the user",
            "type": "number",
            "minimum": 0
        },
        "username": {
            "description": "Name of the user",
            "type": "string",
            "maxLength": 20
        },
        "type": {
            "description": "User type",
            "enum": [
                "user",
                "superuser"
            ]
        }
    },
    "required": [
        "status"
    ],
    "additionalProperties": false
}