$schema: https://json-schema.org/draft/2020-12/schema
$id: CompetitionTimeline.yaml
type: object
properties:
  openDate:
    $ref: Event.yaml
    description: The start date of the competition
  closeDate:
    $ref: Event.yaml
    description: The end date of the competition
  otherDates:
    $ref: '#/$defs/RecordEvent'
    description: The date the competition was created
unevaluatedProperties:
  not: {}
examples:
  - openDate:
      name: Open Date
      eventType: singleDate
      date: '2025-01-01T00:00:00.000Z'
    closeDate:
      name: Close Date
      eventType: singleDate
      date: '2025-01-30T00:00:00.000Z'
    otherDates:
      reviewPeriod:
        name: Application Review Period
        eventType: dateRange
        startDate: '2025-02-01T00:00:00.000Z'
        endDate: '2025-02-28T00:00:00.000Z'
description: Key dates in the competition's timeline.
$defs:
  RecordEvent:
    type: object
    properties: {}
    unevaluatedProperties:
      $ref: Event.yaml
