You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
validateRun(() -> { validateTrue(JSONLD_CONTEXT_CREDENTIALS.equals(this.getContext().get(0))); }, "First value of @context must be https://www.w3.org/2018/credentials/v1");
242
-
validateRun(() -> { for (Stringcontext : this.getContext()) URI.create(context); }, "@context must be a valid URI");
243
-
validateRun(() -> { for (Stringtype : this.getType()) URI.create(type); }, "@type must be a valid URI");
244
-
validateRun(() -> { this.getType().contains(JSONLD_TYPE_VERIFIABLE_CREDENTIAL); }, "@type must contain VerifiableCredential");
validateRun(() -> { if (this.getId() != null) validateUrl(this.getId()); }, "'@id' must be a valid URI.");
276
+
validateRun(() -> { validateUrl(this.getIssuer()); }, "'issuer' must be a valid URI.");
277
+
validateRun(() -> { validateTrue(JSONLD_CONTEXT_CREDENTIALS.equals(this.getContext().get(0)) || JSONLD_CONTEXT_CREDENTIALS_NO_WWW.equals(this.getContext().get(0))); }, "First value of @context must be https://www.w3.org/2018/credentials/v1: " + this.getContext().get(0));
278
+
validateRun(() -> { for (Stringcontext : this.getContext()) validateUrl(context); }, "@context must be a valid URI: " + this.getContext());
0 commit comments