{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://evidence.contact/transaction-evidence-report.schema.json",
  "title": "402Mob offline verification report",
  "type": "object",
  "properties": {
    "protocol": {
      "type": "string",
      "const": "402mob.transaction-evidence-report.v1"
    },
    "outcome": {
      "type": "string",
      "enum": [
        "invalid",
        "incomplete",
        "checked"
      ]
    },
    "checks": {
      "maxItems": 256,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "status": {
            "type": "string",
            "enum": [
              "verified",
              "invalid",
              "missing",
              "not_applicable"
            ]
          },
          "detail": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        },
        "required": [
          "code",
          "status",
          "detail"
        ],
        "additionalProperties": false
      }
    },
    "chainVerification": {
      "type": "string",
      "const": "not_performed"
    },
    "qualityAssessment": {
      "type": "string",
      "const": "not_performed"
    },
    "snapshotAuthenticity": {
      "type": "string",
      "const": "not_proven"
    }
  },
  "required": [
    "protocol",
    "outcome",
    "checks",
    "chainVerification",
    "qualityAssessment",
    "snapshotAuthenticity"
  ],
  "additionalProperties": false
}
