{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transparent-pt/json-schema/transparent-pt-car-summary-schema.json",
  "title": "CarSummary",
  "description": "One car in a list. Labels (`fuel`, `gearbox`, `body`) are localised by `lang`.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transparent-pt-openapi.yml#/components/schemas/CarSummary",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "make": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    },
    "km": {
      "type": "integer"
    },
    "price_eur": {
      "type": "integer",
      "description": "Asking price in EUR."
    },
    "tier": {
      "type": "string",
      "description": "Internal stock tier (transparentcars = \"simple\")."
    },
    "fuel": {
      "type": [
        "string",
        "null"
      ]
    },
    "gearbox": {
      "type": [
        "string",
        "null"
      ]
    },
    "body": {
      "type": [
        "string",
        "null"
      ]
    },
    "photo": {
      "type": [
        "string",
        "null"
      ],
      "description": "Site-relative path to the main photo (prefix with https://transparent.pt). Null if none."
    }
  }
}