{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jobspipe/json-schema/jobspipe-insight-compensation-response-schema.json",
  "title": "InsightCompensationResponse",
  "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/InsightCompensationResponse",
  "type": "object",
  "properties": {
    "occupation_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "occupation_label": {
      "type": [
        "string",
        "null"
      ]
    },
    "window_days": {
      "type": "integer"
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "count": {
      "type": "integer",
      "description": "Postings with stated pay in scope."
    },
    "currency": {
      "type": "string",
      "enum": [
        "USD"
      ]
    },
    "percentiles": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "p10": {
          "type": "number"
        },
        "p25": {
          "type": "number"
        },
        "p50": {
          "type": "number"
        },
        "p75": {
          "type": "number"
        },
        "p90": {
          "type": "number"
        }
      }
    },
    "confidence": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "suppressed": {
      "type": "boolean",
      "description": "True when the sample is under 30 postings."
    }
  }
}