{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-structure/public-api-manager-item-issue-structure.json",
  "name": "ManagerItemIssue",
  "description": "A detailed issue encountered with this item or modifier",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "The error code indicating the type of error",
      "enum": [
        "UNKNOWN",
        "ITEM_MISMATCH",
        "INCOMPLETE_MENU",
        "NO_PARENT_ENTITY",
        "MULTIPLE_PARENT_ENTITIES",
        "MISCONFIGURED_INTEGRATION",
        "INVALID_PARENT_ENTITY_SETUP",
        "CATEGORY_MISSING",
        "EXTERNAL_MODIFIER_GROUP_MISSING",
        "INTERNAL_MODIFIER_GROUP_MISSING"
      ],
      "example": "ITEM_MISMATCH"
    },
    "description": {
      "type": "string",
      "description": "A friendly description describing what went wrong",
      "example": "Item not found"
    }
  },
  "required": [
    "code"
  ]
}