{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/grubhub/main/json-schema/grubhub-deliveryitemoption-schema.json",
  "title": "DeliveryItemOption",
  "x-generated": "2026-09-17",
  "x-method": "derived",
  "x-source": "openapi/grubhub-deliveries-openapi.yml#/components/schemas/DeliveryItemOption",
  "required": [
    "description"
  ],
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "Description of the item being delivered",
      "example": "SUB ITEM"
    },
    "tags": {
      "type": "array",
      "description": "Optional flags to identify various transportation constraints (alcohol, spillable, etc.) as well as any tags the customer feel like adding",
      "items": {
        "type": "string",
        "description": "Optional flags to identify various transportation constraints (alcohol, spillable, etc.) as well as any tags the customer feel like adding"
      }
    },
    "quantity": {
      "minimum": 1,
      "type": "integer",
      "description": "Optional quantity with a default quantity of 1",
      "format": "int32",
      "example": 1
    },
    "options": {
      "type": "array",
      "description": "Optional options on the item (No, Light, Heavy)",
      "items": {
        "$ref": "#/$defs/DeliveryItemOption"
      }
    }
  },
  "description": "An option on an item within a delivery",
  "$defs": {
    "DeliveryItemOption": {
      "required": [
        "description"
      ],
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the item being delivered",
          "example": "SUB ITEM"
        },
        "tags": {
          "type": "array",
          "description": "Optional flags to identify various transportation constraints (alcohol, spillable, etc.) as well as any tags the customer feel like adding",
          "items": {
            "type": "string",
            "description": "Optional flags to identify various transportation constraints (alcohol, spillable, etc.) as well as any tags the customer feel like adding"
          }
        },
        "quantity": {
          "minimum": 1,
          "type": "integer",
          "description": "Optional quantity with a default quantity of 1",
          "format": "int32",
          "example": 1
        },
        "options": {
          "type": "array",
          "description": "Optional options on the item (No, Light, Heavy)",
          "items": {
            "$ref": "#/$defs/DeliveryItemOption"
          }
        }
      },
      "description": "An option on an item within a delivery"
    }
  }
}