{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "evidenceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "evidenceRevisionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "provider": {
      "type": "string",
      "enum": [
        "github",
        "azure_devops"
      ]
    },
    "runId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "commitSha": {
      "type": "string",
      "pattern": "^[a-f0-9]{40,64}$"
    },
    "artifacts": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\s]+$"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "id"
        ]
      },
      "maxItems": 20,
      "minItems": 0
    }
  },
  "required": [
    "evidenceId",
    "evidenceRevisionId",
    "provider",
    "runId",
    "commitSha"
  ]
}