{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayhire-com/json-schema/ayhire-com-role-person-schema.json",
  "title": "RolePerson",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayhire-com-openapi.yml#/components/schemas/RolePerson",
  "type": "object",
  "properties": {
    "github_username": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "avatar_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "location": {
      "type": [
        "string",
        "null"
      ],
      "description": "Only what their profile says"
    },
    "found_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why a search found them"
    },
    "relevance": {
      "type": [
        "integer",
        "null"
      ],
      "description": "0-100 from the role's plan; null without one"
    },
    "decision": {
      "type": "string",
      "enum": [
        "none",
        "shortlisted",
        "not_now"
      ]
    },
    "watching": {
      "type": "boolean"
    },
    "contacted_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why they were added, in the words of whoever added them"
    },
    "analysis": {
      "type": [
        "object",
        "null"
      ],
      "description": "Scores, summary and findings with links; null until scored"
    },
    "assessment": {
      "type": [
        "object",
        "null"
      ],
      "description": "How they fit the role's criteria, with evidence; null until judged"
    },
    "availability": {
      "type": [
        "object",
        "null"
      ],
      "description": "Open to work or already hired, with the signals; null until checked"
    },
    "contact": {
      "type": [
        "object",
        "null"
      ],
      "description": "Email, LinkedIn and X when known"
    },
    "call": {
      "type": "object",
      "properties": {},
      "description": "AyHire's call on them for this role: a label, a sentence and chips"
    }
  },
  "required": [
    "github_username",
    "decision",
    "call"
  ]
}