{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/immutable/main/json-schema/immutable-user-info-schema.json",
  "title": "UserInfo",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immutable-passport-profile-api-openapi.yml#/components/schemas/UserInfo",
  "type": "object",
  "required": [
    "sub",
    "linked_addresses"
  ],
  "properties": {
    "sub": {
      "type": "string",
      "description": "The user's id"
    },
    "email": {
      "type": "string",
      "description": "The user's email address"
    },
    "passport_address": {
      "type": "string",
      "description": "The user's Passport address if it has been registered",
      "pattern": "^0x[0-9a-fA-F]*$",
      "maxLength": 42
    },
    "linked_addresses": {
      "type": "array",
      "minItems": 0,
      "description": "The user's list of linked addresses",
      "items": {
        "description": "The user's linked address",
        "type": "string",
        "pattern": "^0x[0-9a-fA-F]*$",
        "maxLength": 42
      }
    }
  }
}