{
  "$id": "activity-attribute.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "attribute.schema.json",
  "additionalProperties": false,
  "allOf": [
    {
      "if": { "properties": { "key": { "const": "Project" } } },
      "then": {
        "properties": {
          "value": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "QA Project 1",
                "QA Project 2"
              ]
            }
          }
        }
      }
    }
  ],
  "properties": {
    "key": {
      "type": "string",
      "enum": [
        "Project"
      ]
    },
    "value": {
      "type": "array",
      "minItems": 1,
      "maxItems": 1,
      "items": { "type": "string" }
    }
  },
  "required": [ "key", "value" ],
  "title": "Activity Attribute",
  "type": "object"
}