Skip to content

Schedule "required options" is incorrect regarding byDay/byMonth/byMonthDay/repeatFrequency #34

@lukehesluke

Description

@lukehesluke

https://developer.openactive.io/data-model/types/schedule#required-options states that

a data publisher must provide either a byDay, byMonth, byMonthDay or repeatFrequency for a schedule

This is vague and incorrect in most cases. Should the docs instead exactly describe the behaviour currently being implemented in validator in this PR (openactive/data-model-validator#362)

i.e.

Options:

  • Daily repeatFrequency (e.g. P1D)
  • Weekly repeatFrequency (e.g. P2W). byDay is required
  • ...etc

This implies that it is possible to have a repeatFrequency but no byDay, byMonth, byMonthDay. Whereas this PR (openactive/data-model-validator#362) is explicit making that invalid.

The Modelling spec also states that at least one of these other values is needed (https://openactive.io/modelling-opportunity-data/#h-note14:~:text=While%20marked%20as%20optional%2C%20publishers%20also,the%20schema%3AbyDay%2C%20schema%3AbyMonth%20or%20schema%3AbyMonthDay%20properties).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions