{
  "$schema":"https://json-schema.org/draft/2019-09/schema#",
  "$id":"https://schema.certifaction.io/idClaim/v1",
  "$ref":"#/definitions/IdClaim",
  "definitions":{
    "IdClaim":{
      "required":[
        "@context",
        "@id"
      ],
      "properties":{
        "@context":{
          "type":"string"
        },
        "@id":{
          "type":"string"
        },
        "name":{
          "type":"string"
        },
        "name_verified":{
          "type":"boolean"
        },
        "email":{
          "type":"string"
        },
        "email_verified":{
          "type":"boolean"
        },
        "verifiedBy":{
          "type":"string"
        },
        "proof":{
          "oneOf": [
            { "$ref":"/common/v1#/definitions/Proof" },
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "/common/v1#/definitions/Proof"
                  },
                  {
                    "$ref": "/common/v1#/definitions/ExternalProof"
                  }
                ]
              }
            }
          ]
        }
      },
      "additionalProperties":false,
      "type":"object"
    }
  }
}
