{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mojang/json-schema/mojang-friends-list-schema.json",
  "title": "FriendsList",
  "description": "Friends and pending friend requests for the authenticated player.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mojang-friends-api-openapi.yml#/components/schemas/FriendsList",
  "type": "object",
  "properties": {
    "friends": {
      "type": "array",
      "description": "Confirmed friends.",
      "items": {
        "$ref": "#/$defs/Friend"
      }
    },
    "incomingRequests": {
      "type": "array",
      "description": "Pending inbound friend requests.",
      "items": {
        "$ref": "#/$defs/Friend"
      }
    },
    "outgoingRequests": {
      "type": "array",
      "description": "Pending outbound friend requests.",
      "items": {
        "$ref": "#/$defs/Friend"
      }
    },
    "empty": {
      "type": "boolean",
      "description": "Convenience flag — true if no friends or requests."
    }
  },
  "$defs": {
    "Friend": {
      "type": "object",
      "description": "A friend or pending friend.",
      "required": [
        "profile"
      ],
      "properties": {
        "profile": {
          "$ref": "#/$defs/Profile"
        },
        "addedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When the friendship was established."
        }
      }
    },
    "Profile": {
      "type": "object",
      "description": "A Minecraft player profile (id / name pair).",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Player UUID without hyphens."
        },
        "name": {
          "type": "string",
          "description": "Current player username."
        }
      }
    }
  }
}