{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/grubhub/main/json-schema/grubhub-subitem-schema.json",
  "title": "SubItem",
  "x-generated": "2026-09-17",
  "x-method": "derived",
  "x-source": "openapi/grubhub-connect-endpoints-openapi.yml#/components/schemas/SubItem",
  "required": [
    "name"
  ],
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 64,
      "minLength": 0,
      "type": "string",
      "description": "The name of the subitem.",
      "example": "Add cheese"
    },
    "description": {
      "maxLength": 128,
      "minLength": 0,
      "type": "string",
      "description": "The description of the subitem.",
      "example": "Single slice of American cheese."
    },
    "quantity": {
      "minimum": 0,
      "type": "integer",
      "description": "The quantity of this subitem, if applicable.",
      "format": "int32",
      "default": 0
    }
  },
  "description": "The information associated with a delivery subitem."
}