Skip to content

Commit

Permalink
fix: Store context URIs as strings in JSON object
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Jan 9, 2024
1 parent 4b3ecda commit 1cf1ba1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void loadMissingContext(JsonLDObject jsonLDObject){
if(this.getSignatureSuite().getSupportedJsonLDContexts().stream().noneMatch(jsonLDObject.getContexts()::contains)){
URI missingJsonLDContext = this.signatureSuite.getDefaultSupportedJsonLDContext();
if (missingJsonLDContext != null) {
JsonLDUtils.jsonLdAddAsJsonArray(jsonLDObject, Keywords.CONTEXT, missingJsonLDContext);
JsonLDUtils.jsonLdAddAsJsonArray(jsonLDObject, Keywords.CONTEXT, JsonLDUtils.uriToString(missingJsonLDContext));
}
}
}
Expand Down

0 comments on commit 1cf1ba1

Please sign in to comment.