{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "workflows_enable_finished_event",
    "description": "Workflows enable finished event schema",
    "additionalProperties": false,
    "required": [
        "tenant_id",
        "environment_id",
        "service_id",
        "assigned_pilets"
    ],
    "properties": {
        "tenant_id": {
            "type": "string",
            "minLength": 32,
            "maxLength": 36,
            "format": "uuid",
            "description": "A UUID."
        },
        "environment_id": {
            "type": "string",
            "minLength": 32,
            "maxLength": 36,
            "format": "uuid",
            "description": "A UUID."
        },
        "service_id": {
            "type": "string",
            "description": "Service ID"
        },
        "assigned_pilets": {
            "type": "array",
            "description": "Information on pilets assigned for the given service.",
            "additionalItems": false,
            "items": {
                "type": "object",
                "title": "pilet",
                "additionalProperties": false,
                "required": [
                    "id",
                    "name"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Pilet ID"
                    },
                    "name": {
                        "type": "string",
                        "description": "Pilet name"
                    }
                }
            }
        }
    }
}
