{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Configuration",
    "description": "Configuration object for ReToDoList",
    "type": "object",
    "properties": {
        "logs": {
            "type": "object",
            "description": "This object will be passed to Winston logging library during a configuration phase",
            "properties": {
                "level": {
                    "description": "Log level",
                    "type": "string"
                }
            }
        },
        "server": {
            "type": "object",
            "description": "Web server configuration",
            "properties": {
                "port": {
                    "description": "Port number",
                    "type": "number"
                },
                "host": {
                    "description": "Host name",
                    "type": "string"
                }
            },
            "required": [
                "port",
                "host"
            ]
        }
    },
    "required": [
        "server"
    ]
}