Closed lukehesluke closed 4 years ago
Forgot to say: This same question also applies for @id
/ id
Great question, the answer to which can be found in https://github.com/openactive/modelling-opportunity-data/issues/219, and also in the video for today's W3C call.
The conclusion from today was that both @type
/@id
and type
/id
will continue to be supported, with a preference to deprecate type
/id
in future and to encourage all tooling to support both for deserialisation and @type
/@id
for serialisation.
In the opportunity modelling spec (https://www.openactive.io/modelling-opportunity-data/), all objects have a
type
field e.g.Whereas in this Booking API spec, the same field is
@type
e.g.Since the Booking API spec refers to the same sorts of objects as in the modelling spec e.g.
this may cause issues with implementations that utilise both specs.
Where can I find the rationale? And should both specs be normalized?
Thanks :relaxed:
Luke