{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usecommune/json-schema/usecommune-user-schema.json",
  "title": "User",
  "description": "A person's public profile, and the whole of what this API returns about\nanybody other than the credential's own owner. Email address, theme,\nnotification preferences, push subscriptions, read state and saved\narticles are never carried.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usecommune-users-api-openapi.yml#/components/schemas/User",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "object",
    "id"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "user",
      "description": "Always `user`."
    },
    "id": {
      "type": "string",
      "description": "Stable identifier."
    },
    "username": {
      "type": [
        "string",
        "null"
      ],
      "description": "The unique handle the profile resolves on at `/@{username}`. Null\nfor an account that has not finished signing up.\n"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name shown next to their messages and bylines."
    },
    "avatar": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Profile picture. Commune falls back to a generated avatar when the\nperson never set one, so this is rarely null in practice.\n"
    }
  }
}