{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xn--82czbx2bczd4fl8a.online/agent-vc/schema.json",
  "title": "VerifiableCredentialJWT",
  "type": "object",
  "required": [
    "protected",
    "payload",
    "signature"
  ],
  "properties": {
    "protected": {
      "type": "object",
      "required": [
        "alg",
        "kid",
        "typ"
      ]
    },
    "payload": {
      "type": "object",
      "required": [
        "iss",
        "sub",
        "iat",
        "vc"
      ],
      "properties": {
        "iss": {
          "type": "string",
          "description": "DID of issuer"
        },
        "sub": {
          "type": "string",
          "description": "DID of holder"
        },
        "iat": {
          "type": "integer"
        },
        "exp": {
          "type": "integer"
        },
        "jti": {
          "type": "string"
        },
        "vc": {
          "type": "object",
          "required": [
            "@context",
            "type",
            "credentialSubject"
          ],
          "properties": {
            "@context": {
              "type": "array"
            },
            "type": {
              "type": "array"
            },
            "credentialSubject": {
              "type": "object"
            },
            "credentialStatus": {
              "type": "object"
            }
          }
        }
      }
    },
    "signature": {
      "type": "string"
    }
  }
}