{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "jetbrains-user.json",
  "title": "JetBrains User",
  "description": "A user resource common across JetBrains Hub, YouTrack, TeamCity, and Space.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the user."
    },
    "login": {
      "type": "string",
      "description": "Login name of the user."
    },
    "fullName": {
      "type": "string",
      "description": "Full display name of the user."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address of the user."
    },
    "avatarUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL of the user avatar image."
    },
    "banned": {
      "type": "boolean",
      "description": "Whether the user account is banned."
    },
    "groups": {
      "type": "array",
      "description": "Groups the user belongs to.",
      "items": {
        "type": "object",
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" }
        }
      }
    }
  },
  "required": ["id", "login"]
}
