{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/call2me-app/json-schema/call2me-app-signup-request-schema.json",
  "title": "SignupRequest",
  "description": "User registration request.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/call2me-app-authentication-api-openapi.yml#/components/schemas/SignupRequest",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "password": {
      "type": "string",
      "minLength": 8,
      "title": "Password",
      "description": "Minimum 8 characters, max 72 bytes"
    },
    "full_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Full Name"
    },
    "attribution": {
      "anyOf": [
        {
          "$ref": "#/$defs/Attribution"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "email",
    "password"
  ],
  "$defs": {
    "Attribution": {
      "properties": {
        "referrer": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500
            },
            {
              "type": "null"
            }
          ],
          "title": "Referrer"
        },
        "landing": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500
            },
            {
              "type": "null"
            }
          ],
          "title": "Landing"
        },
        "utm_source": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Source"
        },
        "utm_medium": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Medium"
        },
        "utm_campaign": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ],
          "title": "Utm Campaign"
        },
        "gclid": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "type": "null"
            }
          ],
          "title": "Gclid"
        }
      },
      "type": "object",
      "title": "Attribution",
      "description": "Where this user came from, captured in the browser on first touch.\n\nGA4 loses the source when a visitor crosses from call2me.app to\ndash.call2me.app, so every conversion landed in \"Unassigned\" and we\ncould not say how our first paying customer found us (14 Aug 2026).\nThis travels with the signup request instead, so attribution lives in\nour own DB — independent of analytics and ad blockers.\n\nEvery field is optional: a direct visit legitimately has no referrer.\nLengths are capped because these strings come from the client."
    }
  }
}