{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "labor",
  "type": "object",
  "required": ["published_at", "payrolls", "unemployment", "claims", "wages", "history"],
  "additionalProperties": false,
  "properties": {
    "published_at": {"type": "string"},
    "payrolls": {
      "type": "object", "additionalProperties": false,
      "required": ["level_k", "mom_change_k", "yoy_pct", "as_of"],
      "properties": {
        "level_k": {"type": ["number", "null"]},
        "mom_change_k": {"type": ["number", "null"]},
        "yoy_pct": {"type": ["number", "null"]},
        "as_of": {"type": ["string", "null"], "pattern": "^\\d{4}-\\d{2}-\\d{2}$"}
      }
    },
    "unemployment": {
      "type": "object", "additionalProperties": false,
      "required": ["rate", "delta_1y_pp", "as_of"],
      "properties": {
        "rate": {"type": ["number", "null"]},
        "delta_1y_pp": {"type": ["number", "null"]},
        "as_of": {"type": ["string", "null"], "pattern": "^\\d{4}-\\d{2}-\\d{2}$"}
      }
    },
    "claims": {
      "type": "object", "additionalProperties": false,
      "required": ["initial", "initial_4wk_avg", "continued", "as_of"],
      "properties": {
        "initial": {"type": ["number", "null"]},
        "initial_4wk_avg": {"type": ["number", "null"]},
        "continued": {"type": ["number", "null"]},
        "as_of": {"type": ["string", "null"], "pattern": "^\\d{4}-\\d{2}-\\d{2}$"}
      }
    },
    "wages": {
      "type": "object", "additionalProperties": false,
      "required": ["ahe_yoy_pct", "atlanta_wgt_pct", "as_of"],
      "properties": {
        "ahe_yoy_pct": {"type": ["number", "null"]},
        "atlanta_wgt_pct": {"type": ["number", "null"]},
        "as_of": {"type": ["string", "null"], "pattern": "^\\d{4}-\\d{2}-\\d{2}$"}
      }
    },
    "history": {
      "type": "object", "additionalProperties": false,
      "required": ["monthly", "weekly"],
      "properties": {
        "monthly": {
          "type": "object", "additionalProperties": false,
          "required": ["months", "payrolls_yoy_pct", "unemployment_rate"],
          "properties": {
            "months": {"type": "array", "items": {"type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$"}},
            "payrolls_yoy_pct": {"type": "array", "items": {"type": ["number", "null"]}},
            "unemployment_rate": {"type": "array", "items": {"type": ["number", "null"]}}
          }
        },
        "weekly": {
          "type": "object", "additionalProperties": false,
          "required": ["dates", "initial_claims"],
          "properties": {
            "dates": {"type": "array", "items": {"type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$"}},
            "initial_claims": {"type": "array", "items": {"type": ["number", "null"]}}
          }
        }
      }
    }
  }
}
