{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/propraven-com/json-schema/propraven-com-affordability-row-schema.json",
  "title": "AffordabilityRow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/propraven-com-deals-api-openapi.yml#/components/schemas/AffordabilityRow",
  "type": "object",
  "required": [
    "county_fips",
    "median_household_income",
    "median_sale_price",
    "price_to_income_ratio",
    "affordability_rating",
    "year",
    "refreshed_at"
  ],
  "properties": {
    "county_fips": {
      "type": "string"
    },
    "median_household_income": {
      "type": [
        "number",
        "null"
      ]
    },
    "median_sale_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "price_to_income_ratio": {
      "type": [
        "number",
        "null"
      ]
    },
    "affordability_rating": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "AFFORDABLE",
        "MODERATE",
        "EXPENSIVE",
        "VERY_EXPENSIVE",
        null
      ]
    },
    "year": {
      "type": [
        "integer",
        "null"
      ]
    },
    "refreshed_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "state_fips": {
      "type": "string"
    },
    "county_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "monthly_payment_estimate": {
      "type": [
        "number",
        "null"
      ]
    },
    "pct_income_for_housing": {
      "type": [
        "number",
        "null"
      ]
    }
  },
  "additionalProperties": false
}