{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Profile",
  "title": "Profile",
  "type": "object",
  "description": "A customer profile in ODP",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "description": "Customer email address"
    },
    "customer_id": {
      "type": "string",
      "description": "Customer identifier"
    },
    "vuid": {
      "type": "string",
      "description": "Visitor unique identifier"
    },
    "first_name": {
      "type": "string",
      "description": "Customer first name"
    },
    "last_name": {
      "type": "string",
      "description": "Customer last name"
    },
    "city": {
      "type": "string",
      "description": "Customer city"
    },
    "state": {
      "type": "string",
      "description": "Customer state or province"
    },
    "country": {
      "type": "string",
      "description": "Customer country"
    },
    "zip_code": {
      "type": "string",
      "description": "Customer postal code"
    },
    "insights": {
      "type": "object",
      "description": "Computed customer insights and scores",
      "additionalProperties": true
    },
    "segments": {
      "type": "array",
      "description": "Segments the customer belongs to",
      "items": {
        "type": "string"
      }
    }
  }
}