{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carstat-app/json-schema/carstat-app-safety-rating-schema.json",
  "title": "safety_rating",
  "description": "NHTSA safety rating for a vehicle variant. Star ratings are numbers. The data object contains full test results, safety equipment, and additional details.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carstat-app-safety-ratings-api-openapi.yml#/components/schemas/safety_rating",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Safety rating record ID"
    },
    "make": {
      "type": "string",
      "description": "Vehicle manufacturer"
    },
    "model": {
      "type": "string",
      "description": "Vehicle model"
    },
    "year_int": {
      "type": "integer",
      "description": "Model year"
    },
    "body_style": {
      "type": "string",
      "description": "Body style"
    },
    "vehicle_type": {
      "type": "string",
      "description": "Vehicle type"
    },
    "drive_train": {
      "type": "string",
      "description": "Drive train"
    },
    "overall_stars": {
      "type": "number",
      "description": "Overall star rating"
    },
    "overall_frnt_stars": {
      "type": "number",
      "description": "Overall frontal star rating"
    },
    "overall_side_stars": {
      "type": "number",
      "description": "Overall side star rating"
    },
    "side_pole_stars": {
      "type": "number",
      "description": "Side pole star rating"
    },
    "rollover_stars": {
      "type": "number",
      "description": "Rollover star rating"
    },
    "frnt_driv_stars": {
      "type": "number",
      "description": "Frontal driver star rating"
    },
    "frnt_pass_stars": {
      "type": "number",
      "description": "Frontal passenger star rating"
    },
    "side_driv_stars": {
      "type": "number",
      "description": "Side driver star rating"
    },
    "side_pass_stars": {
      "type": "number",
      "description": "Side passenger star rating"
    },
    "side_barrier_star": {
      "type": "number",
      "description": "Side barrier star rating"
    },
    "comb_frnt_star": {
      "type": "number",
      "description": "Combined front star rating"
    },
    "comb_rear_star": {
      "type": "number",
      "description": "Combined rear star rating"
    },
    "data": {
      "type": "object",
      "description": "Full NHTSA safety data including test results, equipment details, and additional ratings"
    }
  }
}