{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/main/json-schema/github-user-search-result-item-schema.json",
  "title": "User Search Result Item",
  "description": "User Search Result Item",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-search-api-openapi.yml#/components/schemas/user-search-result-item",
  "type": "object",
  "properties": {
    "login": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "node_id": {
      "type": "string"
    },
    "avatar_url": {
      "type": "string",
      "format": "uri"
    },
    "gravatar_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "html_url": {
      "type": "string",
      "format": "uri"
    },
    "followers_url": {
      "type": "string",
      "format": "uri"
    },
    "subscriptions_url": {
      "type": "string",
      "format": "uri"
    },
    "organizations_url": {
      "type": "string",
      "format": "uri"
    },
    "repos_url": {
      "type": "string",
      "format": "uri"
    },
    "received_events_url": {
      "type": "string",
      "format": "uri"
    },
    "type": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "following_url": {
      "type": "string"
    },
    "gists_url": {
      "type": "string"
    },
    "starred_url": {
      "type": "string"
    },
    "events_url": {
      "type": "string"
    },
    "public_repos": {
      "type": "integer"
    },
    "public_gists": {
      "type": "integer"
    },
    "followers": {
      "type": "integer"
    },
    "following": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "bio": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "location": {
      "type": [
        "string",
        "null"
      ]
    },
    "site_admin": {
      "type": "boolean"
    },
    "hireable": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "text_matches": {
      "$ref": "#/$defs/search-result-text-matches"
    },
    "blog": {
      "type": [
        "string",
        "null"
      ]
    },
    "company": {
      "type": [
        "string",
        "null"
      ]
    },
    "suspended_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "avatar_url",
    "events_url",
    "followers_url",
    "following_url",
    "gists_url",
    "gravatar_id",
    "html_url",
    "id",
    "node_id",
    "login",
    "organizations_url",
    "received_events_url",
    "repos_url",
    "site_admin",
    "starred_url",
    "subscriptions_url",
    "type",
    "url",
    "score"
  ],
  "$defs": {
    "search-result-text-matches": {
      "title": "Search Result Text Matches",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "object_url": {
            "type": "string"
          },
          "object_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "property": {
            "type": "string"
          },
          "fragment": {
            "type": "string"
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string"
                },
                "indices": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}