{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reporters-io/json-schema/reporters-io-reporter-page-schema.json",
  "title": "ReporterPage",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reporters-io-openapi.json#/components/schemas/ReporterPage",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Reporter"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "has_more": {
      "type": "boolean"
    },
    "total": {
      "type": "integer",
      "minimum": 0,
      "description": "Search totals describe the bounded result snapshot (at most 100), not the entire database. Content-list totals describe eligible records."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "snapshot_expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Present on search result snapshots."
    }
  },
  "required": [
    "items",
    "next_cursor",
    "has_more",
    "total",
    "limit"
  ],
  "additionalProperties": false,
  "$defs": {
    "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
    },
    "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
    }
  }
}