{
    "$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": "How much the application logs, from most detail to none. Only these names are read: CRITICAL, for instance, is FATAL here.",
            "minLength": 1,
            "enum": [
                "TRACE",
                "DEBUG",
                "INFO",
                "WARN",
                "ERROR",
                "FATAL",
                "OFF"
            ],
            "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."
        },
        "licenseFallback": {
            "type": "string",
            "description": "What to do when an Advanced licence cannot be acquired but a Basic one can. USE_BASIC: keep going at the lower tier. SKIP: leave the module uncreated. STOP_APP: refuse to start.",
            "enum": [
                "USE_BASIC",
                "SKIP",
                "STOP_APP"
            ],
            "default": "USE_BASIC"
        },
        "handshakeEdge": {
            "type": "string",
            "description": "When an operation started by the ready/request handshake runs. FALLING_EDGE: once the client has set <op>/request back to false. RISING_EDGE: as soon as the application sees <op>/request set to true; it then waits for <op>/request to fall. Every operation alike: reset, connect-camera, disconnect-camera, save, capture, load, list-images, remove. A client that keeps <op>/request true until it sees the result, as ctrlX PLC function blocks do with xExecute, needs RISING_EDGE: with FALLING_EDGE the operation starts only after the client gives up and sets <op>/request back to false.",
            "enum": [
                "FALLING_EDGE",
                "RISING_EDGE"
            ],
            "default": "FALLING_EDGE"
        }
    },
    "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,
            "handshakeEdge": "RISING_EDGE"
        }
    ]
}
