{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clusterhack-dev/json-schema/clusterhack-dev-paginated-auth-user-directory-schema.json",
  "title": "PaginatedAuthUserDirectory",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clusterhack-dev-auth-api-openapi.yml#/components/schemas/PaginatedAuthUserDirectory",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AuthUserDirectoryEntry"
      }
    },
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    }
  },
  "required": [
    "count",
    "next",
    "previous",
    "results"
  ],
  "$defs": {
    "AuthUserDirectoryEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "username": {
          "type": "string"
        },
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "profile": {
          "allOf": [
            {
              "$ref": "#/$defs/PublicProfile"
            }
          ]
        }
      },
      "required": [
        "first_name",
        "id",
        "last_name",
        "profile",
        "username"
      ]
    },
    "PublicProfile": {
      "type": "object",
      "description": "Profile fields safe for a public hacker directory. Excludes private PII\n(phone_number, date_of_birth, telegram_name) that must only ever appear in\nthe owner's own 'me' views.",
      "properties": {
        "photo": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "mini_description": {
          "type": "string",
          "maxLength": 100
        },
        "full_description": {
          "type": "string",
          "maxLength": 1000
        },
        "website": {
          "oneOf": [
            {
              "type": "string",
              "format": "uri",
              "maxLength": 200
            },
            {
              "type": "string",
              "maxLength": 0
            }
          ]
        },
        "linkedin_link": {
          "type": "string",
          "maxLength": 130
        },
        "github_link": {
          "type": "string",
          "maxLength": 130
        }
      }
    }
  }
}