{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OMNeXa campaign draft exchange 1.0",
  "type": "object",
  "required": [
    "schemaVersion",
    "type",
    "taskId",
    "channel",
    "pillar",
    "draft",
    "sources"
  ],
  "properties": {
    "schemaVersion": {
      "const": "1.0"
    },
    "type": {
      "const": "campaign-draft"
    },
    "taskId": {
      "type": "string",
      "maxLength": 128
    },
    "channel": {
      "enum": [
        "LinkedIn",
        "Facebook",
        "Instagram",
        "X",
        "YouTube",
        "Google Search",
        "Website"
      ]
    },
    "pillar": {
      "enum": [
        "Human-Centric AI & Future of Work",
        "Risk, Governance & Regulatory Compliance",
        "Sustainability & ESG",
        "Career & Education Pathways",
        "AI & Robotics Ecosystem",
        "Health & Human Well-being",
        "HMS pilot",
        "NeXaKriya pilot",
        "NeXaVirama pilot"
      ]
    },
    "draft": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000
    },
    "sources": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "format": "uri"
      }
    }
  },
  "additionalProperties": false
}