{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "",
    "type": "object",
    "properties": {
        "debug": {
            "type": "boolean",
            "default": false,
            "description": "Enable debug mode for the application."
        },
        "logLevel": {
            "type": "string",
            "description": "Log level for the application.",
            "minLength": 1,
            "enum": [
                "TRACE",
                "DEBUG",
                "INFO",
                "WARN",
                "ERROR",
                "FATAL"
            ],
            "default": "INFO"
        },
        "storage": {
            "type": "object",
            "$ref": "storage.schema.json"
        },
        "unifiedStorage": {
            "type": "boolean",
            "default": false,
            "description": "If true, all cameras will share the same storage folder. If false, each camera will have its own storage folder."
        }
    },
    "examples": [
        {
            "debug": false,
            "logLevel": "INFO",
            "storage": {
                "type": "Internal",
                "parameters": {
                    "rootPath": "images"
                }
            },
            "unifiedStorage": false
        },
        {
            "debug": true,
            "logLevel": "DEBUG",
            "storage": {
                "type": "Internal",
                "parameters": {
                    "rootPath": "images"
                }
            },
            "unifiedStorage": true
        }
    ]
}
