{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/backresto-com/json-schema/backresto-com-haccp-audit-request-schema.json",
  "title": "HaccpAuditRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/backresto-com-openapi.json#/components/schemas/HaccpAuditRequest",
  "type": "object",
  "required": [
    "businessName",
    "firstName",
    "lastName",
    "email",
    "establishmentType",
    "numberOfSites"
  ],
  "properties": {
    "businessName": {
      "type": "string",
      "maxLength": 100,
      "description": "Restaurant or business name."
    },
    "firstName": {
      "type": "string",
      "maxLength": 50
    },
    "lastName": {
      "type": "string",
      "maxLength": 50
    },
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 100
    },
    "establishmentType": {
      "type": "string",
      "maxLength": 50,
      "description": "Type of establishment (e.g. restaurant, brasserie, traiteur, boulangerie)."
    },
    "numberOfSites": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "phone": {
      "type": "string",
      "maxLength": 20
    },
    "website": {
      "type": "string",
      "maxLength": 200,
      "description": "Business website; https:// is added when the protocol is missing."
    },
    "jobTitle": {
      "type": "string",
      "maxLength": 100
    },
    "numberOfEmployees": {
      "type": "string",
      "maxLength": 20
    },
    "haccpMethod": {
      "type": "string",
      "maxLength": 20,
      "description": "Current HACCP method (e.g. paper, excel, software, none)."
    },
    "address": {
      "type": "string",
      "maxLength": 255
    }
  }
}