Otter · JSON Structure

Public Api Regular Hours Structure

Describes the configuration of regular hours.

Type: object Properties: 2 Required: 2
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

RegularHours is a JSON Structure definition published by Otter, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

days timeRanges

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-structure/public-api-regular-hours-structure.json",
  "name": "RegularHours",
  "description": "Describes the configuration of regular hours.",
  "type": "object",
  "properties": {
    "days": {
      "type": "array",
      "description": "The day of the week this configuration applies.",
      "items": {
        "type": "string",
        "description": "Day of the week.",
        "enum": [
          "MONDAY",
          "TUESDAY",
          "WEDNESDAY",
          "THURSDAY",
          "FRIDAY",
          "SATURDAY",
          "SUNDAY"
        ]
      }
    },
    "timeRanges": {
      "type": "array",
      "description": "Hours range applied to the provided day of the week",
      "items": {
        "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-time-range-schema.json"
      }
    }
  },
  "required": [
    "days",
    "timeRanges"
  ]
}