doordash · JSON Structure

Doordash Option Group Structure

OptionGroup structure from DoorDash API

Type: object Properties: 5 Required: 3

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

Properties

id name min_selections max_selections options

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/doordash/refs/heads/main/json-structure/doordash-option-group-structure.json",
  "name": "OptionGroup",
  "description": "OptionGroup structure 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": "int32",
      "description": "The minimum number of options that must be selected.",
      "minimum": 0,
      "example": 0
    },
    "max_selections": {
      "type": "int32",
      "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"
  ]
}