openactive / modelling-opportunity-data

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

repeatCount: Clarify that it is an upper bound #267

Open lukehesluke opened 3 years ago

lukehesluke commented 3 years ago

repeatCount is documented in the spec (at https://openactive.io/modelling-opportunity-data/#publishing-event-schedules) as "Specifies that an Event will repeat the specified number of times".

If a Schedule had a repeatCount of 2, a repeatFrequency of P1W, a startDate and endDate of 2022-03-04, then this session would only happen once, right? Because the startDate and endDate are on the same day. This implies that repeatCount is just an upper bound on how often the Event will repeat (which can be augmented by other data such as endDate). This would conform with how iCal seems to describe count:

https://icalendar.org/iCalendar-RFC-5545/3-3-10-recurrence-rule.html#aswift_4:~:text=The%20COUNT%20rule%20part%20defines%20the%20number%20of%20occurrences%20at%20which%20to%20range%2Dbound%20the%20recurrence