{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casafari/json-schema/casafari-api-comparables-prices-v1-schema.json",
  "title": "ApiComparablesPricesV1",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casafari-api-valuation-api-openapi.yml#/components/schemas/ApiComparablesPricesV1",
  "properties": {
    "statistics": {
      "properties": {
        "average_price": {
          "type": "integer",
          "description": "Average price."
        },
        "average_price_per_sqm": {
          "type": "number",
          "description": "Average price per square meter."
        },
        "average_time_on_the_market": {
          "type": "integer",
          "description": "Average number of days on the market."
        },
        "average_listings_per_property": {
          "type": "number",
          "description": "Average number of listings per property."
        },
        "sold_or_rented_in_last_six_months": {
          "type": "integer",
          "description": "Number of properties that were sold or rented during the last 6 months in the requested location."
        }
      },
      "type": [
        "object",
        "null"
      ],
      "required": [
        "average_price",
        "average_price_per_sqm",
        "average_time_on_the_market",
        "average_listings_per_property",
        "sold_or_rented_in_last_six_months"
      ],
      "description": "Statistics information for the found comparables (for `operation` defined in the request)."
    },
    "estimated_prices": {
      "properties": {
        "fast_sell_price": {
          "type": "integer",
          "description": "Fast sell price."
        },
        "fair_market_price": {
          "type": "integer",
          "description": "Fair market price."
        },
        "out_of_market_price": {
          "type": "integer",
          "description": "Out of market price."
        },
        "fast_sell_price_per_sqm": {
          "type": "number",
          "description": "Fast sell price per square meter."
        },
        "fair_market_price_per_sqm": {
          "type": "number",
          "description": "Fair market price per square meter."
        },
        "out_of_market_price_per_sqm": {
          "type": "number",
          "description": "Out of market price per square meter."
        }
      },
      "type": "object",
      "required": [
        "fast_sell_price",
        "fair_market_price",
        "out_of_market_price",
        "fast_sell_price_per_sqm",
        "fair_market_price_per_sqm",
        "out_of_market_price_per_sqm"
      ],
      "description": "Estimated prices calculated based on the found comparables (for `operation` defined in the request)."
    }
  },
  "type": "object",
  "required": [
    "statistics",
    "estimated_prices"
  ]
}