{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corapilot-com/json-schema/corapilot-com-register-request-schema.json",
  "title": "RegisterRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/corapilot-com-auth-api-openapi.yml#/components/schemas/RegisterRequest",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "password": {
      "type": "string",
      "maxLength": 128,
      "minLength": 10,
      "title": "Password"
    },
    "full_name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 2,
      "title": "Full Name"
    },
    "account_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Name"
    },
    "plan_code": {
      "anyOf": [
        {
          "$ref": "#/$defs/PlanCode"
        },
        {
          "type": "null"
        }
      ]
    },
    "ref": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Ref"
    },
    "services": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Services"
    }
  },
  "type": "object",
  "required": [
    "email",
    "password",
    "full_name"
  ],
  "$defs": {
    "PlanCode": {
      "type": "string",
      "enum": [
        "whatsapp",
        "whatsapp_annual",
        "business",
        "enterprise"
      ],
      "title": "PlanCode",
      "description": "WhatsApp product plan codes (4 types)."
    }
  }
}