{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clearpolicy-app/json-schema/clearpolicy-app-create-person-request-schema.json",
  "title": "CreatePersonRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/clearpolicy-app-api-openapi.json#/components/schemas/CreatePersonRequest",
  "type": "object",
  "required": [
    "last_name",
    "email"
  ],
  "properties": {
    "first_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255,
      "description": "The person's first name. Optional."
    },
    "last_name": {
      "type": "string",
      "maxLength": 255,
      "description": "The person's last name. Required."
    },
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 255,
      "description": "The email address. Must be unique within your organization."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Phone number in international format (e.g. +12025550147)."
    }
  }
}