{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jobspipe/json-schema/jobspipe-insight-benchmark-request-schema.json",
  "title": "InsightBenchmarkRequest",
  "description": "Requires occupation_code or title.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jobspipe-labour-market-insights-api-openapi.yml#/components/schemas/InsightBenchmarkRequest",
  "type": "object",
  "properties": {
    "occupation_code": {
      "type": "string",
      "pattern": "^\\d{1,4}$"
    },
    "title": {
      "type": "string",
      "description": "Title substring match, e.g. data engineer."
    },
    "country": {
      "type": "string",
      "pattern": "^[A-Z]{2}$"
    },
    "seniority": {
      "type": "string",
      "enum": [
        "entry",
        "mid",
        "senior",
        "lead",
        "exec"
      ]
    },
    "window_days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365,
      "default": 90
    }
  }
}