Variable vcSchemaConst

vcSchema: {
    properties: {
        @context: {
            additionalItems: {
                anyOf: readonly [{
                    format: "uri";
                    type: "string";
                }, {
                    type: "object";
                }];
            };
            items: readonly [{
                const: "https://www.w3.org/2018/credentials/v1";
            }];
            minItems: 1;
            type: "array";
        };
        credentialSubject: {
            oneOf: readonly [{
                type: "object";
            }, {
                items: {
                    type: "object";
                };
                type: "array";
            }];
        };
        expirationDate: {
            format: "date-time";
            type: "string";
        };
        holder: {
            oneOf: readonly [{
                format: "uri";
                type: "string";
            }, {
                properties: {
                    id: {
                        format: "uri";
                        type: "string";
                    };
                    type: {
                        type: "string";
                    };
                };
                required: readonly ["id"];
                type: "object";
            }];
        };
        id: {
            format: "uri";
            type: "string";
        };
        issuanceDate: {
            format: "date-time";
            type: "string";
        };
        issuer: {
            oneOf: readonly [{
                format: "uri";
                type: "string";
            }, {
                properties: {
                    id: {
                        format: "uri";
                        type: "string";
                    };
                    type: {
                        type: "string";
                    };
                };
                required: readonly ["id"];
                type: "object";
            }];
        };
        proof: {
            oneOf: readonly [{
                properties: {
                    created: {
                        format: "date-time";
                        type: "string";
                    };
                    jws: {
                        type: "string";
                    };
                    proofPurpose: {
                        const: "assertionMethod";
                    };
                    type: {
                        type: "string";
                    };
                    verificationMethod: {
                        type: "string";
                    };
                };
                required: readonly ["type", "created", "proofPurpose", "verificationMethod", "jws"];
                type: "object";
            }, {
                properties: {
                    created: {
                        format: "date-time";
                        type: "string";
                    };
                    proofPurpose: {
                        const: "assertionMethod";
                    };
                    proofValue: {
                        type: "string";
                    };
                    type: {
                        type: "string";
                    };
                    verificationMethod: {
                        type: "string";
                    };
                };
                required: readonly ["type", "created", "proofPurpose", "verificationMethod", "proofValue"];
                type: "object";
            }];
        };
        type: {
            contains: {
                const: "VerifiableCredential";
            };
            items: {
                type: "string";
            };
            minItems: 1;
            type: "array";
        };
    };
    required: readonly ["@context", "id", "type", "credentialSubject", "issuanceDate", "issuer", "proof"];
    type: "object";
} = ...

Type declaration

  • Readonly properties: {
        @context: {
            additionalItems: {
                anyOf: readonly [{
                    format: "uri";
                    type: "string";
                }, {
                    type: "object";
                }];
            };
            items: readonly [{
                const: "https://www.w3.org/2018/credentials/v1";
            }];
            minItems: 1;
            type: "array";
        };
        credentialSubject: {
            oneOf: readonly [{
                type: "object";
            }, {
                items: {
                    type: "object";
                };
                type: "array";
            }];
        };
        expirationDate: {
            format: "date-time";
            type: "string";
        };
        holder: {
            oneOf: readonly [{
                format: "uri";
                type: "string";
            }, {
                properties: {
                    id: {
                        format: "uri";
                        type: "string";
                    };
                    type: {
                        type: "string";
                    };
                };
                required: readonly ["id"];
                type: "object";
            }];
        };
        id: {
            format: "uri";
            type: "string";
        };
        issuanceDate: {
            format: "date-time";
            type: "string";
        };
        issuer: {
            oneOf: readonly [{
                format: "uri";
                type: "string";
            }, {
                properties: {
                    id: {
                        format: "uri";
                        type: "string";
                    };
                    type: {
                        type: "string";
                    };
                };
                required: readonly ["id"];
                type: "object";
            }];
        };
        proof: {
            oneOf: readonly [{
                properties: {
                    created: {
                        format: "date-time";
                        type: "string";
                    };
                    jws: {
                        type: "string";
                    };
                    proofPurpose: {
                        const: "assertionMethod";
                    };
                    type: {
                        type: "string";
                    };
                    verificationMethod: {
                        type: "string";
                    };
                };
                required: readonly ["type", "created", "proofPurpose", "verificationMethod", "jws"];
                type: "object";
            }, {
                properties: {
                    created: {
                        format: "date-time";
                        type: "string";
                    };
                    proofPurpose: {
                        const: "assertionMethod";
                    };
                    proofValue: {
                        type: "string";
                    };
                    type: {
                        type: "string";
                    };
                    verificationMethod: {
                        type: "string";
                    };
                };
                required: readonly ["type", "created", "proofPurpose", "verificationMethod", "proofValue"];
                type: "object";
            }];
        };
        type: {
            contains: {
                const: "VerifiableCredential";
            };
            items: {
                type: "string";
            };
            minItems: 1;
            type: "array";
        };
    }
    • Readonly @context: {
          additionalItems: {
              anyOf: readonly [{
                  format: "uri";
                  type: "string";
              }, {
                  type: "object";
              }];
          };
          items: readonly [{
              const: "https://www.w3.org/2018/credentials/v1";
          }];
          minItems: 1;
          type: "array";
      }
      • Readonly additionalItems: {
            anyOf: readonly [{
                format: "uri";
                type: "string";
            }, {
                type: "object";
            }];
        }
        • Readonly anyOf: readonly [{
              format: "uri";
              type: "string";
          }, {
              type: "object";
          }]
      • Readonly items: readonly [{
            const: "https://www.w3.org/2018/credentials/v1";
        }]
      • Readonly minItems: 1
      • Readonly type: "array"
    • Readonly credentialSubject: {
          oneOf: readonly [{
              type: "object";
          }, {
              items: {
                  type: "object";
              };
              type: "array";
          }];
      }
      • Readonly oneOf: readonly [{
            type: "object";
        }, {
            items: {
                type: "object";
            };
            type: "array";
        }]
    • Readonly expirationDate: {
          format: "date-time";
          type: "string";
      }
      • Readonly format: "date-time"
      • Readonly type: "string"
    • Readonly holder: {
          oneOf: readonly [{
              format: "uri";
              type: "string";
          }, {
              properties: {
                  id: {
                      format: "uri";
                      type: "string";
                  };
                  type: {
                      type: "string";
                  };
              };
              required: readonly ["id"];
              type: "object";
          }];
      }
      • Readonly oneOf: readonly [{
            format: "uri";
            type: "string";
        }, {
            properties: {
                id: {
                    format: "uri";
                    type: "string";
                };
                type: {
                    type: "string";
                };
            };
            required: readonly ["id"];
            type: "object";
        }]
    • Readonly id: {
          format: "uri";
          type: "string";
      }
      • Readonly format: "uri"
      • Readonly type: "string"
    • Readonly issuanceDate: {
          format: "date-time";
          type: "string";
      }
      • Readonly format: "date-time"
      • Readonly type: "string"
    • Readonly issuer: {
          oneOf: readonly [{
              format: "uri";
              type: "string";
          }, {
              properties: {
                  id: {
                      format: "uri";
                      type: "string";
                  };
                  type: {
                      type: "string";
                  };
              };
              required: readonly ["id"];
              type: "object";
          }];
      }
      • Readonly oneOf: readonly [{
            format: "uri";
            type: "string";
        }, {
            properties: {
                id: {
                    format: "uri";
                    type: "string";
                };
                type: {
                    type: "string";
                };
            };
            required: readonly ["id"];
            type: "object";
        }]
    • Readonly proof: {
          oneOf: readonly [{
              properties: {
                  created: {
                      format: "date-time";
                      type: "string";
                  };
                  jws: {
                      type: "string";
                  };
                  proofPurpose: {
                      const: "assertionMethod";
                  };
                  type: {
                      type: "string";
                  };
                  verificationMethod: {
                      type: "string";
                  };
              };
              required: readonly ["type", "created", "proofPurpose", "verificationMethod", "jws"];
              type: "object";
          }, {
              properties: {
                  created: {
                      format: "date-time";
                      type: "string";
                  };
                  proofPurpose: {
                      const: "assertionMethod";
                  };
                  proofValue: {
                      type: "string";
                  };
                  type: {
                      type: "string";
                  };
                  verificationMethod: {
                      type: "string";
                  };
              };
              required: readonly ["type", "created", "proofPurpose", "verificationMethod", "proofValue"];
              type: "object";
          }];
      }
      • Readonly oneOf: readonly [{
            properties: {
                created: {
                    format: "date-time";
                    type: "string";
                };
                jws: {
                    type: "string";
                };
                proofPurpose: {
                    const: "assertionMethod";
                };
                type: {
                    type: "string";
                };
                verificationMethod: {
                    type: "string";
                };
            };
            required: readonly ["type", "created", "proofPurpose", "verificationMethod", "jws"];
            type: "object";
        }, {
            properties: {
                created: {
                    format: "date-time";
                    type: "string";
                };
                proofPurpose: {
                    const: "assertionMethod";
                };
                proofValue: {
                    type: "string";
                };
                type: {
                    type: "string";
                };
                verificationMethod: {
                    type: "string";
                };
            };
            required: readonly ["type", "created", "proofPurpose", "verificationMethod", "proofValue"];
            type: "object";
        }]
    • Readonly type: {
          contains: {
              const: "VerifiableCredential";
          };
          items: {
              type: "string";
          };
          minItems: 1;
          type: "array";
      }
      • Readonly contains: {
            const: "VerifiableCredential";
        }
        • Readonly const: "VerifiableCredential"
      • Readonly items: {
            type: "string";
        }
        • Readonly type: "string"
      • Readonly minItems: 1
      • Readonly type: "array"
  • Readonly required: readonly ["@context", "id", "type", "credentialSubject", "issuanceDate", "issuer", "proof"]
  • Readonly type: "object"