{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aveco-app/json-schema/aveco-app-contact-body-schema.json",
  "title": "ContactBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aveco-app-domains-api-openapi.yml#/components/schemas/ContactBody",
  "properties": {
    "first_name": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1,
      "title": "First Name"
    },
    "last_name": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1,
      "title": "Last Name"
    },
    "email": {
      "type": "string",
      "maxLength": 120,
      "minLength": 5,
      "pattern": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",
      "title": "Email"
    },
    "phone": {
      "type": "string",
      "pattern": "^\\+[1-9]\\d{6,14}$",
      "title": "Phone"
    },
    "address1": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Address1"
    },
    "address2": {
      "type": "string",
      "maxLength": 120,
      "title": "Address2",
      "default": ""
    },
    "city": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "City"
    },
    "state": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "State"
    },
    "zip": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1,
      "title": "Zip"
    },
    "country": {
      "type": "string",
      "maxLength": 2,
      "minLength": 2,
      "title": "Country"
    },
    "company": {
      "type": "string",
      "maxLength": 120,
      "title": "Company",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "first_name",
    "last_name",
    "email",
    "phone",
    "address1",
    "city",
    "state",
    "zip",
    "country"
  ]
}