{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rrmacademy-org/json-schema/rrmacademy-org-signup-request-schema.json",
  "title": "SignupRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rrmacademy-org-openapi.json#/components/schemas/SignupRequest",
  "type": "object",
  "required": [
    "firstName",
    "lastName",
    "email",
    "password"
  ],
  "properties": {
    "firstName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "lastName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Validated for format, disposable domains, and MX records."
    },
    "password": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "description": "8-128 characters; common/breached passwords are rejected."
    },
    "next": {
      "type": "string",
      "maxLength": 200,
      "description": "Optional post-signup redirect path."
    },
    "turnstileToken": {
      "type": "string",
      "description": "Cloudflare Turnstile token when the bot check is enforced."
    }
  }
}