{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/darwin-so/json-schema/darwin-so-create-account-request-schema.json",
  "title": "CreateAccountRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/darwin-so-accounts-api-openapi.yml#/components/schemas/CreateAccountRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "email",
    "password",
    "name",
    "type"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 320
    },
    "password": {
      "type": "string",
      "minLength": 12,
      "maxLength": 256,
      "writeOnly": true
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "type": {
      "type": "string",
      "enum": [
        "personal",
        "business",
        "software"
      ]
    },
    "organizationName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "Required for business and software."
    },
    "organizationDomain": {
      "type": "string",
      "minLength": 3,
      "maxLength": 253,
      "description": "Required for business and software; not ownership proof."
    }
  }
}