Otter · Schema

HoursData

Represents hours configuration with regular hours and special hours.

RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

Properties

Name Type Description
timeZone string TimeZone of all times under it. (https://www.joda.org/joda-time/timezones.html)
regularHours array List of regular hours configuration.
specialHours array List of special hours configuration, for occasions like Christmas, Thanksgiving, or any other holidays.
View JSON Schema on GitHub

JSON Schema

public-api-hours-data-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "HoursData",
  "description": "Represents hours configuration with regular hours and special hours.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-hours-data-schema.json",
  "type": "object",
  "properties": {
    "timeZone": {
      "type": "string",
      "description": "TimeZone of all times under it. (https://www.joda.org/joda-time/timezones.html)",
      "format": "timezone-id",
      "example": "America/Los_Angeles"
    },
    "regularHours": {
      "type": "array",
      "description": "List of regular hours configuration.",
      "items": {
        "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-regular-hours-schema.json"
      }
    },
    "specialHours": {
      "type": "array",
      "description": "List of special hours configuration, for occasions like Christmas, Thanksgiving, or any other holidays.",
      "items": {
        "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-special-hours-schema.json"
      }
    }
  },
  "required": [
    "regularHours",
    "specialHours",
    "timeZone"
  ]
}