{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Identifier of the project returned by its create or list operation."
    },
    "records": {
      "minItems": 1,
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "envelopeJson": {
            "type": "string",
            "minLength": 2,
            "maxLength": 65536
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "cliVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "localEvidenceSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "screenshot": {
            "type": "object",
            "properties": {
              "reference": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "sha256": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "reference"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "envelopeJson",
          "sha256",
          "cliVersion"
        ],
        "additionalProperties": false
      },
      "description": "The records value; allowed values and bounds are specified in this schema."
    }
  },
  "required": [
    "projectId",
    "records"
  ],
  "additionalProperties": false
}
