{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://circuitgenome.com/schemas/cges-epsa-board-0.1.schema.json",
  "title": "CGES EPSA Board Extension 0.1",
  "description": "Validation schema for metadata.analysis_context.epsa_board payloads.",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "profile": {
      "type": "string"
    },
    "system": {
      "type": "string"
    },
    "owner": {
      "type": "string"
    },
    "goal": {
      "type": "string"
    },
    "risk_level": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "critical"
      ]
    },
    "approval": {
      "type": "string",
      "enum": [
        "draft",
        "reviewed",
        "approved"
      ]
    }
  },
  "required": [
    "enabled",
    "profile"
  ],
  "additionalProperties": true
}
