{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketcheck/json-schema/marketcheck-depreciation-point-schema.json",
  "title": "DepreciationPoint",
  "description": "Depreciation data for a vehicle",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketcheck-market-api-openapi.yml#/components/schemas/DepreciationPoint",
  "type": "object",
  "properties": {
    "vin": {
      "type": "string"
    },
    "current_value": {
      "type": "number"
    },
    "depreciation_stats": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DepreciationStats"
      }
    }
  },
  "$defs": {
    "DepreciationStats": {
      "type": "object",
      "description": "Annual depreciation statistics",
      "properties": {
        "year": {
          "type": "integer",
          "description": "Calendar year"
        },
        "avg_price": {
          "type": "number",
          "description": "Average price for that year"
        },
        "depreciation_pct": {
          "type": "number",
          "description": "Depreciation percentage from original"
        }
      }
    }
  }
}