json-ld: only add items to context if they're used in this document
Opened this issue · 0 comments
alastair commented
We have some hard-coded url -> prefixes for the contexts that we use:
ce-api/src/routes/helpers/transformers.js
Lines 6 to 12 in 1e669bf
We should only return these mappings if the prefix is used in the document that is being returned