{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayhire-com/json-schema/ayhire-com-scraped-candidate-schema.json",
  "title": "ScrapedCandidate",
  "description": "Profile, repos and activity read live from GitHub, with no scores: what POST /api/analyze answers with `scrape_only`.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayhire-com-openapi.yml#/components/schemas/ScrapedCandidate",
  "type": "object",
  "properties": {
    "github_username": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "bio": {
      "type": [
        "string",
        "null"
      ]
    },
    "location": {
      "type": [
        "string",
        "null"
      ],
      "description": "Only what their profile says"
    },
    "company": {
      "type": [
        "string",
        "null"
      ]
    },
    "avatar_url": {
      "type": "string"
    },
    "followers": {
      "type": "integer"
    },
    "public_repos": {
      "type": "integer"
    },
    "top_languages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "top_topics": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "total_stars": {
      "type": "integer"
    },
    "repos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "stars": {
            "type": "integer"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "description": "Up to 10 of their repos"
    },
    "orgs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "login": {
            "type": "string"
          },
          "avatar_url": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "maxLength": 280
          }
        }
      },
      "description": "Up to 10 organizations"
    },
    "readmes_fetched": {
      "type": "integer",
      "description": "READMEs read"
    },
    "recent_commits": {
      "type": "integer",
      "description": "Recent commits read"
    },
    "activity": {
      "type": "object",
      "properties": {
        "total_events": {
          "type": "integer"
        },
        "push_events": {
          "type": "integer"
        },
        "pr_events": {
          "type": "integer"
        },
        "issue_events": {
          "type": "integer"
        }
      }
    }
  },
  "required": [
    "github_username",
    "repos",
    "activity"
  ]
}