Closed ddeboer closed 4 years ago
@ddeboer We're about to tag a new release and while reviewing the changes we were wondering what impact of this change is to existing code. Won't all code expecting the existence of "@id" break?
Hey @rl-king! You’re right, this is definitely a BC break. In practice:
ginger_json_ld:serialize_to_map/1
are mainly controller_rdf:rdf/2
and m_rdf:m_find_value/3
; they serialize straight to JSON (which still works fine)@type
before anyway because it was not conforming to the JSON-LD standard.👍 thanks for the quick response!
We used to produce JSON-LD documents like:
However, this doesn't validate against https://json-ld.org/playground/, so change it to:
which does validate.