openapi: 3.1.0
info:
  title: DayType
  version: 2.0.0
  description: Schema definition for the DayType entity in the Beckn Mobility domain.
  license:
    name: CC-BY-NC-SA 4.0 International
    url: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    DayType:
      x-iri: https://schema.nfh.global/DayType/v2.0
      type: object
      title: DayType
      description: A classification of a day (e.g., weekday, weekend, public holiday)
        used to define when a service pattern is valid.
      x-tags:
        - mobility
        - schema-org
        - ride-hailing
      properties:
        dayTypeCode:
          description: Code identifying the day type (e.g. WEEKDAY, WEEKEND, HOLIDAY)
          type: string
        daysOfWeek:
          description: List of days of the week applicable to this day type
          type: array
        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
