{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transparent-pt/json-schema/transparent-pt-car-detail-schema.json",
  "title": "CarDetail",
  "description": "Full car detail. Human-readable labels localised by `lang`; `fuel_code` is the raw stored code.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transparent-pt-openapi.yml#/components/schemas/CarDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "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"
    },
    "fuel": {
      "type": [
        "string",
        "null"
      ],
      "description": "Localised fuel label."
    },
    "gearbox": {
      "type": [
        "string",
        "null"
      ]
    },
    "body": {
      "type": [
        "string",
        "null"
      ]
    },
    "colour": {
      "type": [
        "string",
        "null"
      ]
    },
    "hp": {
      "type": [
        "integer",
        "null"
      ]
    },
    "cc": {
      "type": [
        "integer",
        "null"
      ]
    },
    "co2": {
      "type": [
        "integer",
        "null"
      ]
    },
    "fuel_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Raw (non-localised) fuel code."
    },
    "description": {
      "type": "string",
      "description": "HTML description in the requested language."
    },
    "youtube_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "photos": {
      "type": "array",
      "description": "Ordered site-relative photo paths (prefix with https://transparent.pt).",
      "items": {
        "type": "string"
      }
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}