{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/steadywrk-app/json-schema/steadywrk-app-index-response-schema.json",
  "title": "IndexResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/steadywrk-app-openapi.json#/components/schemas/IndexResponse",
  "type": "object",
  "required": [
    "trades",
    "wage_vs_billed",
    "note",
    "model_assumptions",
    "updated_at",
    "source_period",
    "rate_model_version"
  ],
  "properties": {
    "trades": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "kind is always \"hourly_wage\" — medianRateDollars/p25/p75 (and their *Wage* aliases) are what a technician earns, NOT a price. billedHourlyRateRoutine* is a modeled customer hourly estimate.",
        "required": [
          "kind",
          "medianWageDollars",
          "p25WageDollars",
          "p75WageDollars",
          "billedHourlyRateRoutineCents",
          "billedHourlyRateRoutineDollars"
        ],
        "properties": {
          "trade": {
            "type": "string"
          },
          "tradeLabel": {
            "type": "string"
          },
          "blsOccCode": {
            "type": "string"
          },
          "metro": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "urgency": {
            "type": "string"
          },
          "medianRateDollars": {
            "type": "number"
          },
          "p25RateDollars": {
            "type": "number"
          },
          "p75RateDollars": {
            "type": "number"
          },
          "sampleSize": {
            "type": "integer"
          },
          "period": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "const": "hourly_wage"
          },
          "medianWageDollars": {
            "type": "number"
          },
          "p25WageDollars": {
            "type": "number"
          },
          "p75WageDollars": {
            "type": "number"
          },
          "billedHourlyRateRoutineCents": {
            "type": "integer"
          },
          "billedHourlyRateRoutineDollars": {
            "type": "number"
          }
        },
        "additionalProperties": false
      }
    },
    "wage_vs_billed": {
      "type": "object",
      "properties": {
        "warning": {
          "type": "string"
        },
        "wage_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "billed_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "full_estimate_tool": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "note": {
      "type": "string"
    },
    "model_assumptions": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    },
    "source_period": {
      "type": "string"
    },
    "rate_model_version": {
      "type": "string"
    }
  },
  "additionalProperties": false
}