{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Case-insensitive product-name query."
},
"section": {
"type": "string",
"enum": [
"Produce",
"Dairy & Eggs",
"Bakery",
"Pantry & Baking",
"Meat & Seafood",
"Deli & Prepared",
"Frozen",
"Beverages",
"Snacks",
"Household & Personal"
],
"description": "Optional department filter."
},
"organic": {
"type": "boolean",
"description": "When true, return organic products only."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20,
"description": "Maximum products to return."
}
},
"additionalProperties": false
}{
"type": "object",
"properties": {
"department": {
"type": "string",
"enum": [
"Produce",
"Dairy & Eggs",
"Bakery",
"Pantry & Baking",
"Meat & Seafood",
"Deli & Prepared",
"Frozen",
"Beverages",
"Snacks",
"Household & Personal"
],
"description": "Department to browse."
}
},
"required": [
"department"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"minimum": 1,
"maximum": 110,
"description": "Catalog product ID."
}
},
"required": [
"product_id"
],
"additionalProperties": false
}{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"minimum": 1,
"maximum": 110,
"description": "Catalog product ID."
},
"quantity": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of units to add."
}
},
"required": [
"product_id"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"minimum": 1,
"maximum": 110,
"description": "Catalog product ID."
},
"quantity": {
"type": "integer",
"minimum": 0,
"description": "New quantity; use 0 to remove the item."
}
},
"required": [
"product_id",
"quantity"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"minimum": 1,
"maximum": 110,
"description": "Catalog product ID."
}
},
"required": [
"product_id"
],
"additionalProperties": false
}{
"type": "object",
"properties": {},
"additionalProperties": false
}