{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whichtrim-com/json-schema/whichtrim-com-vehicle-schema.json",
  "title": "Vehicle",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whichtrim-com-openapi.yaml#/components/schemas/Vehicle",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "make": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    },
    "segment": {
      "type": "string"
    },
    "powertrains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "grade": {
      "type": "string",
      "enum": [
        "A",
        "B",
        "C",
        "D",
        "F"
      ]
    },
    "score": {
      "type": "integer",
      "minimum": 35,
      "maximum": 100
    },
    "recall_count": {
      "type": "integer"
    },
    "critical_count": {
      "type": "integer"
    },
    "active_advisory": {
      "type": "boolean"
    },
    "complaints": {
      "type": "integer",
      "description": "Unique NHTSA complaints on file for the model year"
    },
    "ncap_overall": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 5
    },
    "best_mpg": {
      "type": [
        "integer",
        "null"
      ]
    },
    "best_range_mi": {
      "type": [
        "integer",
        "null"
      ]
    },
    "msrp_from": {
      "type": [
        "number",
        "null"
      ],
      "description": "Lowest trim MSRP from the manufacturer press kit, when published"
    },
    "page": {
      "type": "string",
      "format": "uri"
    }
  }
}