{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "u6u Workflow Configuration",
  "type": "object",
  "required": ["name", "description", "version", "triplets"],
  "properties": {
    "name": { "type": "string" },
    "description": { "type": "string" },
    "version": { "type": "string" },
    "trigger": {
      "type": "object",
      "required": ["type"],
      "properties": {
        "type": { "enum": ["schedule", "webhook", "event"] },
        "cron": { "type": "string" }
      }
    },
    "triplets": {
      "type": "array",
      "items": { "type": "string" }
    },
    "context": {
      "type": "object",
      "additionalProperties": true
    }
  }
}