Skip to content

Commit 1cdf0bf

Browse files
committed
fix: 'credentialSubject' is not required.
Signed-off-by: Markus Sabadello <[email protected]>
1 parent 2c030e1 commit 1cdf0bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/danubetech/verifiablecredentials/VerifiableCredential.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public void validate() throws IllegalStateException {
296296
validateRun(() -> { validateTrue(this.getIssuer() != null); }, "Bad or missing 'issuer'.");
297297
validateRun(() -> { validateTrue(this.getIssuanceDate() != null); }, "Bad or missing 'issuanceDate'.");
298298
validateRun(() -> { this.getExpirationDate(); }, "Bad 'expirationDate'.");
299-
validateRun(() -> { validateTrue(this.getCredentialSubject() != null); }, "Bad or missing 'credentialSubject'.");
299+
validateRun(() -> { this.getCredentialSubject(); }, "Bad or missing 'credentialSubject'.");
300300

301301
validateRun(() -> { if (this.getId() != null) validateUrl(this.getId()); }, "'@id' must be a valid URI.");
302302
validateRun(() -> { validateUrl(this.getIssuer()); }, "'issuer' must be a valid URI.");

0 commit comments

Comments
 (0)