{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reporters-io/json-schema/reporters-io-reporter-schema.json",
  "title": "Reporter",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reporters-io-openapi.json#/components/schemas/Reporter",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,9}$"
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "occupation": {
      "type": [
        "string",
        "null"
      ]
    },
    "bio": {
      "type": [
        "string",
        "null"
      ]
    },
    "location": {
      "type": "object",
      "properties": {
        "city_region": {
          "type": [
            "string",
            "null"
          ]
        },
        "country_code": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "city_region",
        "country_code"
      ],
      "additionalProperties": false
    },
    "beats": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "avatar_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "social_links": {
      "type": "object",
      "properties": {
        "linkedin": {
          "type": [
            "string",
            "null"
          ]
        },
        "x": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "linkedin",
        "x",
        "website"
      ],
      "additionalProperties": false
    },
    "outlet": {
      "anyOf": [
        {
          "$ref": "#/$defs/ReporterOutlet"
        },
        {
          "type": "null"
        }
      ]
    },
    "has_email": {
      "type": "boolean"
    },
    "match": {
      "type": "string",
      "enum": [
        "exact",
        "related"
      ],
      "description": "Search result classification only; related matches can broaden topic coverage."
    }
  },
  "required": [
    "id",
    "slug",
    "name",
    "occupation",
    "bio",
    "location",
    "beats",
    "avatar_url",
    "social_links",
    "outlet",
    "has_email"
  ],
  "additionalProperties": false,
  "$defs": {
    "ReporterOutlet": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "website_url": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "slug",
        "name",
        "website_url"
      ],
      "additionalProperties": false
    }
  }
}