{
  "$schema":"https://json-schema.org/draft/2019-09/schema#",
  "$id":"https://schema.certifaction.io/claim/v2",
  "$ref":"#/definitions/Claim",
  "definitions":{
    "Claim":{
      "required":[
        "@context",
        "@id"
      ],
      "properties":{
        "@context":{
          "type":"string"
        },
        "@id":{
          "type":"string"
        },
        "ref":{
          "type":"string"
        },
        "scope":{
          "type":"string"
        },
        "note":{
          "type":"string"
        },
        "exp":{
          "$ref":"/common/v1#/definitions/HashableTime"
        },
        "proof":{
          "oneOf": [
            { "$ref":"/common/v1#/definitions/Proof" },
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "/common/v1#/definitions/Proof"
                  },
                  {
                    "$ref": "/common/v1#/definitions/ExternalProof"
                  }
                ]
              }
            }
          ]
        },
        "level":{
          "type":"string"
        },
        "jurisdiction":{
          "type":"string"
        },
        "metadata":{
          "$ref":"/common/v1#/definitions/Metadata"
        },
        "idclaims":{
          "type": "array",
          "items": {
            "$ref":"/idclaim/v1#/definitions/IdClaim"
          }
        },
        "hashes": {
          "type": "array",
          "items": {
            "$ref":"/common/v1#/definitions/Hash"
          }
        }
      },
      "additionalProperties":false,
      "type":"object"
    }
  }
}
