Skip to content

Commit

Permalink
fix: add core context if missing in batch operations w/ JSON-LD conte…
Browse files Browse the repository at this point in the history
…nt type
  • Loading branch information
bobeal committed May 9, 2024
1 parent b02d6db commit 89d9e13
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ class EntityOperationHandler(
payload.map {
val jsonLdExpansionResult =
if (contentType == JSON_LD_MEDIA_TYPE)
expandJsonLdEntityF(it.minus(JSONLD_CONTEXT), it.extractContexts())
expandJsonLdEntityF(
it.minus(JSONLD_CONTEXT),
addCoreContextIfMissing(it.extractContexts(), applicationProperties.contexts.core)
)
else
expandJsonLdEntityF(it, addCoreContextIfMissing(listOfNotNull(context)))
jsonLdExpansionResult
Expand Down

0 comments on commit 89d9e13

Please sign in to comment.