openactive-contrib / harvester

Harvester for slurping OA feed data, written in Node.js
MIT License
0 stars 1 forks source link

Support both '@id/id' and '@type/type' #45

Open thill-odi opened 4 years ago

thill-odi commented 4 years ago

Because inclusion of the '@' symbol played havoc with so many systems, OpenActive standards originally truncated JSON-LD's '@type' and '@id' attributes to simply 'type' and 'id'.

With increasing awareness of, and conformance with, JSON-LD, however, publishers are increasingly adopting the '@type' and '@id' forms by default. All harvester and related tooling should therefore be capable of parsing both: