{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/backresto-com/json-schema/backresto-com-allergen-parse-request-schema.json",
  "title": "AllergenParseRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/backresto-com-openapi.json#/components/schemas/AllergenParseRequest",
  "type": "object",
  "required": [
    "files"
  ],
  "properties": {
    "files": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "description": "Menu images to parse.",
      "items": {
        "type": "object",
        "required": [
          "name",
          "type",
          "base64"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "File name."
          },
          "type": {
            "type": "string",
            "enum": [
              "image/jpeg",
              "image/png",
              "image/webp",
              "image/heic"
            ],
            "description": "Image MIME type."
          },
          "base64": {
            "type": "string",
            "description": "Base64-encoded image content (no data: prefix)."
          }
        }
      }
    }
  }
}