{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/serviceList.json",
    "type": "array",
    "title": "Supported service states",
    "items": {
        "type": "object",
        "title": "Service state",
        "required": [
            "name",
            "enabled",
            "active",
            "status"
        ],
        "properties": {
            "name": {
                "type": "string",
                "title": "Service name",
                "description": "Service name",
                "example": "iqrf-gateway-daemon"
            },
            "enabled": {
                "type": [
                    "boolean",
                    "null"
                ],
                "title": "Service enabled",
                "description": "Is service enabled?",
                "example": true
            },
            "active": {
                "type": [
                    "boolean",
                    "null"
                ],
                "title": "Service active",
                "description": "Service active",
                "example": true
            },
            "status": {
                "type": [
                    "string",
                    "null"
                ],
                "title": "Service status",
                "description": "Service status",
                "example": null
            },
            "unitFileState": {
                "type": [
                    "string",
                    "null"
                ],
                "title": "systemd unit file state",
                "description": "Enablement state of systemd unit file, services in static, indirect, generated, transient, bad and masked states cannot be enabled or disabled; null if not supported by the init system",
                "enum": [
                    "enabled",
                    "enabled-runtime",
                    "linked",
                    "linked-runtime",
                    "alias",
                    "masked",
                    "masked-runtime",
                    "static",
                    "indirect",
                    "disabled",
                    "generated",
                    "transient",
                    "bad",
                    null
                ],
                "example": "enabled"
            }
        }
    }
}
