{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smarfle-com/json-schema/smarfle-com-customer-update-schema.json",
  "title": "CustomerUpdate",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smarfle-com-openapi.yml#/components/schemas/CustomerUpdate",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "first_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "last_name": {
      "type": "string",
      "maxLength": 80
    },
    "company_name": {
      "type": "string",
      "maxLength": 120
    },
    "email": {
      "type": "string"
    },
    "phone": {
      "type": "string",
      "maxLength": 30
    },
    "status": {
      "type": "string",
      "enum": [
        "lead",
        "active",
        "inactive",
        "archived"
      ]
    },
    "notes": {
      "type": "string",
      "maxLength": 5000
    },
    "address_street": {
      "type": "string",
      "maxLength": 200
    },
    "address_unit": {
      "type": "string",
      "maxLength": 50
    },
    "address_city": {
      "type": "string",
      "maxLength": 100
    },
    "address_state": {
      "type": "string",
      "maxLength": 50
    },
    "address_zip": {
      "type": "string",
      "maxLength": 20
    }
  }
}