{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transparent-pt/json-schema/transparent-pt-valuation-result-schema.json",
  "title": "ValuationResult",
  "description": "Fair-price band from comparable listings, or `found:false` with a comp count.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transparent-pt-openapi.yml#/components/schemas/ValuationResult",
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "comps": {
      "type": "integer",
      "description": "Number of comparable listings found."
    },
    "match_level": {
      "type": "integer",
      "description": "How tightly comparables matched the query (higher = tighter). 0 = broadest match."
    },
    "days_sell": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Typical days-to-sell for the comparables."
    },
    "rough": {
      "type": "boolean",
      "description": "true when the sample is shaky (model broadened, or fewer than 5 comps)."
    },
    "low": {
      "type": "integer",
      "description": "Lower bound (≈P25) of the asking-price band, EUR."
    },
    "median": {
      "type": "integer",
      "description": "Median asking price, EUR."
    },
    "high": {
      "type": "integer",
      "description": "Upper bound (≈P75) of the asking-price band, EUR."
    }
  }
}