{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "verifiedByConsumer": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attestedByPublisher": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "privateVerificationBasisLockHash": {
      "type": "string",
      "allOf": [
        {
          "pattern": "^[a-f0-9]{64}$"
        }
      ]
    },
    "acceptanceVerificationId": {
      "type": "string"
    },
    "acceptanceCreatedAt": {
      "type": "string"
    },
    "acceptedDatasetDigest": {
      "type": "string",
      "allOf": [
        {
          "pattern": "^[a-f0-9]{64}$"
        }
      ]
    },
    "acceptance": {
      "type": "string",
      "enum": [
        "pass"
      ]
    },
    "verificationBasis": {
      "type": "string"
    },
    "certificateDigestsRecomputed": {
      "type": "boolean",
      "enum": [
        false
      ]
    },
    "readerLayoutCertified": {
      "type": "boolean",
      "enum": [
        false
      ]
    },
    "liveStatusAvailable": {
      "type": "boolean",
      "enum": [
        false
      ]
    },
    "instruments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "titleId": {
            "type": "string"
          },
          "registerId": {
            "type": "string"
          },
          "versionDate": {
            "type": "string"
          },
          "sourceObservation": {
            "type": "object",
            "properties": {
              "checkedAt": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "attested"
                ]
              }
            },
            "required": [
              "checkedAt",
              "status"
            ],
            "additionalProperties": false
          },
          "proofVerdict": {
            "type": "string",
            "enum": [
              "pass"
            ]
          },
          "differentPixels": {
            "type": "number",
            "enum": [
              0
            ]
          },
          "certificateDigest": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^sha256:[a-f0-9]{64}$"
              }
            ]
          }
        },
        "required": [
          "slug",
          "titleId",
          "registerId",
          "versionDate",
          "sourceObservation",
          "proofVerdict",
          "differentPixels",
          "certificateDigest"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "verifiedByConsumer",
    "attestedByPublisher",
    "privateVerificationBasisLockHash",
    "acceptanceVerificationId",
    "acceptanceCreatedAt",
    "acceptedDatasetDigest",
    "acceptance",
    "verificationBasis",
    "certificateDigestsRecomputed",
    "readerLayoutCertified",
    "liveStatusAvailable",
    "instruments"
  ],
  "additionalProperties": false,
  "$defs": {}
}
