{
  "$id": "https://schema.nfh.global/ServiceCalendar/v2.0",
  "x-iri": "https://schema.nfh.global/ServiceCalendar/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ServiceCalendar",
  "type": "object",
  "description": "A schedule defining on which dates a transport service operates, including regular service days and exceptional dates.",
  "properties": {
    "serviceId": {
      "description": "Unique identifier for the service calendar",
      "type": "string"
    },
    "monday": {
      "description": "Whether service operates on Mondays",
      "type": "boolean"
    },
    "tuesday": {
      "description": "Whether service operates on Tuesdays",
      "type": "boolean"
    },
    "wednesday": {
      "description": "Whether service operates on Wednesdays",
      "type": "boolean"
    },
    "thursday": {
      "description": "Whether service operates on Thursdays",
      "type": "boolean"
    },
    "friday": {
      "description": "Whether service operates on Fridays",
      "type": "boolean"
    },
    "saturday": {
      "description": "Whether service operates on Saturdays",
      "type": "boolean"
    },
    "sunday": {
      "description": "Whether service operates on Sundays",
      "type": "boolean"
    },
    "exceptionDates": {
      "description": "Dates on which service is added or removed from the regular schedule",
      "type": "string",
      "format": "date-time"
    },
    "startDate": {
      "description": "Start date and time of the period",
      "type": "string",
      "format": "date-time"
    },
    "endDate": {
      "description": "End date and time of the period",
      "type": "string",
      "format": "date-time"
    },
    "startTime": {
      "description": "Start time of day in HH:MM:SS format",
      "type": "string"
    },
    "endTime": {
      "description": "End time of day in HH:MM:SS format",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "schema-org",
    "ride-hailing"
  ]
}
