{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-web-registration-request-schema.json",
  "title": "WebRegistrationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-ghii-web-api-openapi.yml#/components/schemas/WebRegistrationRequest",
  "type": "object",
  "required": [
    "username",
    "displayName"
  ],
  "properties": {
    "username": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$",
      "description": "Unique username (becomes owner name)"
    },
    "displayName": {
      "type": "string",
      "maxLength": 100,
      "description": "Human-readable display name"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Optional email for verification and magic link login"
    },
    "setupCode": {
      "type": "string",
      "description": "The one-time setup code from the start log. Needed only while the node has no operator, for the account that would become it; a request from loopback to a node whose base URL is loopback goes without it."
    },
    "interests": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of interests/hobbies"
    },
    "location": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "area": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      }
    }
  }
}