doordash · Schema

OptionGroup

OptionGroup schema from DoorDash API

Properties

Name Type Description
id string The unique identifier for this option group.
name string The display name of the option group.
min_selections integer The minimum number of options that must be selected.
max_selections integer The maximum number of options that can be selected.
options array The available options in this group.
View JSON Schema on GitHub

JSON Schema

doordash-option-group-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/doordash/refs/heads/main/json-schema/doordash-option-group-schema.json",
  "title": "OptionGroup",
  "description": "OptionGroup schema from DoorDash API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for this option group.",
      "example": "D-12345"
    },
    "name": {
      "type": "string",
      "description": "The display name of the option group.",
      "example": "Acme Pickup Store"
    },
    "min_selections": {
      "type": "integer",
      "description": "The minimum number of options that must be selected.",
      "minimum": 0,
      "example": 0
    },
    "max_selections": {
      "type": "integer",
      "description": "The maximum number of options that can be selected.",
      "minimum": 1,
      "example": 1
    },
    "options": {
      "type": "array",
      "description": "The available options in this group.",
      "items": {
        "$ref": "#/components/schemas/MenuOption"
      }
    }
  },
  "required": [
    "id",
    "name",
    "options"
  ]
}