{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recallkitchen-com/json-schema/recallkitchen-com-public-recall-response-schema.json",
  "title": "PublicRecallResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recallkitchen-com-openapi.yml#/components/schemas/PublicRecallResponse",
  "properties": {
    "extracted": {
      "$ref": "#/$defs/ExtractedData"
    },
    "recall": {
      "$ref": "#/$defs/HTTPRecall"
    }
  },
  "type": "object",
  "$defs": {
    "ExtractedData": {
      "properties": {
        "contact": {
          "properties": {
            "emails": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "phones": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "websites": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "establishments": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "images": {
          "description": "Public HTTPS URLs of recalled-product photos hosted by Recall Kitchen",
          "items": {
            "format": "uri",
            "type": "string"
          },
          "type": "array"
        },
        "locations": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "products": {
          "items": {
            "properties": {
              "lotCodes": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "modelNumbers": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "packaging": {
                "type": "string"
              },
              "productName": {
                "type": "string"
              },
              "upcs": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "useByDates": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "stores": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "HTTPRecall": {
      "properties": {
        "description": {
          "type": "string"
        },
        "extractedData": {
          "$ref": "#/$defs/ExtractedData"
        },
        "id": {
          "type": "string"
        },
        "publishedOn": {
          "format": "date-time",
          "type": "string"
        },
        "severity": {
          "type": "string"
        },
        "source": {
          "enum": [
            "cpsc",
            "fdafoodsafety",
            "FDAMedWatch",
            "usda",
            "nhtsa",
            "canada",
            "openfda"
          ],
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}