grubhub · Schema

TimeWindow

A time window defining a start and end time.

Properties

Name Type Description
start_time string The start time in HH:mm format.
end_time string The end time in HH:mm format.
View JSON Schema on GitHub

JSON Schema

grubhub-timewindow-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TimeWindow",
  "title": "TimeWindow",
  "type": "object",
  "description": "A time window defining a start and end time.",
  "properties": {
    "start_time": {
      "type": "string",
      "description": "The start time in HH:mm format.",
      "pattern": "^\\d{2}:\\d{2}$"
    },
    "end_time": {
      "type": "string",
      "description": "The end time in HH:mm format.",
      "pattern": "^\\d{2}:\\d{2}$"
    }
  },
  "required": [
    "start_time",
    "end_time"
  ]
}