{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "workflows_disable_finished_event",
  "description": "Workflows disable finished event schema",
  "additionalProperties": false,
  "required": [
    "tenant_id",
    "environment_id",
    "service_id",
    "unassigned_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"
    },
    "unassigned_pilets": {
      "type": "array",
      "description": "Information on pilets unassigned 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"
          }
        }
      }
    }
  }
}