{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:folio:1:pantry",
  "title": "pantry.json",
  "description": "Staples the cook always has. Only in full exports.",
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "foodId",
      "name",
      "aisle"
    ],
    "properties": {
      "foodId": {
        "type": "string",
        "minLength": 1
      },
      "name": {
        "type": "string"
      },
      "aisle": {
        "type": "string",
        "minLength": 1,
        "description": "Produce, Bakery, Meat & fish, Dairy & eggs, Grains & pasta, Tins & jars, Baking, Spices & oils, Frozen, Drinks or Other. Any other name is kept and listed after Drinks, alphabetically."
      },
      "addedAt": {
        "type": [
          "string",
          "null"
        ],
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?Z$",
        "description": "ISO 8601 in UTC with a Z, seconds required, fractions of a second optional (up to 9 digits): 2026-11-08T12:00:00Z."
      }
    }
  }
}
