feat: introduces optional JSON-LD context for management API #4470
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR changes/adds
introduces optional JSON-LD context for management API
Why it does that
improves JSON-LD objects in management APIs
Further notes
management-api-json-ld-context
extensionmanagement-context-v1.jsonld
moved in thejson-ld
extension@vocab
andedc
namespace definition are not loaded in the default scope (*
) but each scope registers them@vocab
is still possible with theedc.jsonld.vocab.disable
config. If it's disabled the registerNamespace implementation will skip itTo activate the JSON-LD context in the management API set
edc.management.context.enabled=true
Since the @vocab and
edc
prefixes are removed from the default scope but registered in each scope separately,this is a breaking change only for people that, when extending EDC uses the JsonLd service and do not specify the scope when compacting., or for extensions that use a custom scope but do not register
@vocab
andedc
directly.Linked Issue(s)
Closes #4466
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.