openactive / modelling-opportunity-data

OpenActive Modelling Opportunity Data specification
https://www.openactive.io/modelling-opportunity-data/
Other
6 stars 6 forks source link

`startDate` and `endDate` should never be inherited #271

Open nickevansuk opened 3 years ago

nickevansuk commented 3 years ago

Some properties are never inherited. These properties are @type, @id, schema:url, schema:identifier and schema:eventSchedule. A consumer must not assume that these properties apply to child events. If a child Event provides a property with the same name as its parent (e.g. startDate) then consumers must use the value provided for the child and not that of the parent.

This guidance above in the spec does not match the rest of the 2.0 spec, as specific Event subclasses have been created to avoid the ambiguity of inheriting startDate.

startDate and endDate should never be inherited.