Docmaps-Project / docmaps

Extensible protocol for document history metadata exchange, to enable trustworthy, rapid, open science, by and for preprint science communities.
MIT License
15 stars 1 forks source link

add @context when missing #54

Closed ships closed 1 year ago

ships commented 1 year ago

Description

The Docmap codec will now always return a value with @context key set. If the @context key is set to something other than the correct context, it will fail to decode (do we want this behavior?) If it is empty or null, it will be set to the correct key.

Related Issues

This should improve interoperability with JSON-LD.

Checklist

Additional Information

Provide any additional information that might be helpful in understanding this pull request, such as screenshots, links to relevant research, or other context.