{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wenmarpro-com/json-schema/wenmarpro-com-recall-campaign-schema.json",
  "title": "RecallCampaign",
  "description": "One campaign with every vehicle it lists.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wenmarpro-com-open-openapi.json#/components/schemas/RecallCampaign",
  "type": "object",
  "required": [
    "source",
    "country",
    "campaign",
    "vehicles",
    "may_apply",
    "lookup",
    "attribution",
    "url"
  ],
  "properties": {
    "as_of": {
      "type": [
        "string",
        "null"
      ],
      "description": "The day this publisher's data was current."
    },
    "attribution": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "campaign": {
      "type": "string"
    },
    "completion": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/RecallCompletion",
          "description": "How far the remedy had got when the manufacturer last reported to\nNHTSA. `null` for a Canadian campaign, for a campaign with no\nreport on file, and on a server that holds no reports."
        }
      ]
    },
    "component": {
      "type": [
        "string",
        "null"
      ]
    },
    "consequence": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": "string"
    },
    "date": {
      "type": [
        "string",
        "null"
      ]
    },
    "do_not_drive": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "french": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/RecallFrench",
          "description": "`null` for a US campaign and for a Canadian one with no French text."
        }
      ]
    },
    "lookup": {
      "$ref": "#/$defs/RecallLookup"
    },
    "manufacturer": {
      "type": [
        "string",
        "null"
      ]
    },
    "may_apply": {
      "type": "boolean",
      "description": "Always `true`: the campaign may apply to a vehicle it lists."
    },
    "mfr_campaign": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "notification": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner_notified": {
      "type": [
        "string",
        "null"
      ],
      "description": "The day owners were notified."
    },
    "park_outside": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "part_number": {
      "type": [
        "string",
        "null"
      ],
      "description": "The manufacturer's part numbers, separated by commas."
    },
    "remedy": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": "string"
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "units": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "url": {
      "type": "string",
      "description": "The campaign's page on this site."
    },
    "vehicles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecallCampaignVehicle"
      },
      "description": "Every vehicle the campaign lists, by make, model and year."
    }
  },
  "$defs": {
    "RecallCampaignVehicle": {
      "type": "object",
      "description": "One vehicle a campaign lists.",
      "required": [
        "make",
        "model"
      ],
      "properties": {
        "built_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "built_to": {
          "type": [
            "string",
            "null"
          ]
        },
        "make": {
          "type": "string",
          "description": "The make and model as the source words them."
        },
        "match": {
          "type": [
            "string",
            "null"
          ],
          "description": "`exact`, `base` or `curated`; `null` when the model is not in the\ncatalog, as for most heavy trucks, buses and trailers."
        },
        "model": {
          "type": "string"
        },
        "vehicle_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The catalog's id for the model year, when the model matched."
        },
        "year": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "minimum": 0
        }
      }
    },
    "RecallCompletion": {
      "type": "object",
      "description": "The newest report of remedy progress a manufacturer filed with NHTSA\nfor a campaign. The counts are totals for the whole campaign at the end\nof the period named, which may be years past. They say nothing of one\nvehicle: check a VIN at the addresses in `lookup`.",
      "required": [
        "kind",
        "report_number",
        "period_from",
        "period_to",
        "involved",
        "remedied",
        "unreachable",
        "removed"
      ],
      "properties": {
        "as_of": {
          "type": [
            "string",
            "null"
          ],
          "description": "The day NHTSA's report files were current."
        },
        "involved": {
          "type": "integer",
          "format": "int32",
          "description": "Vehicles in the campaign.",
          "minimum": 0
        },
        "kind": {
          "type": "string",
          "description": "`quarterly` or `annual`."
        },
        "period_from": {
          "type": "string",
          "description": "The first quarter the report covers, as a year and a quarter."
        },
        "period_to": {
          "type": "string",
          "description": "The last quarter it covers. The counts are as of the end of it. A\nquarterly report has the same quarter in both."
        },
        "remedied": {
          "type": "integer",
          "format": "int32",
          "description": "Of those, reported remedied.",
          "minimum": 0
        },
        "remedied_percent": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "`remedied` as a share of `involved`, in whole percent, rounded\ndown. `null` when `involved` is 0.",
          "minimum": 0
        },
        "removed": {
          "type": "integer",
          "format": "int32",
          "description": "NHTSA's \"total removed\", as reported.",
          "minimum": 0
        },
        "report_number": {
          "type": "integer",
          "format": "int32",
          "description": "The report's number among those of its kind, from 1.",
          "minimum": 0
        },
        "submitted": {
          "type": [
            "string",
            "null"
          ],
          "description": "The day the manufacturer filed the report."
        },
        "unreachable": {
          "type": "integer",
          "format": "int32",
          "description": "NHTSA's \"total unreachable\", as reported.",
          "minimum": 0
        }
      }
    },
    "RecallFrench": {
      "type": "object",
      "description": "Transport Canada's French text for a campaign.",
      "properties": {
        "component": {
          "type": [
            "string",
            "null"
          ]
        },
        "notification": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "RecallLookup": {
      "type": "object",
      "description": "Where to check one vehicle for open recalls. Neither government\npublishes recalls by VIN as data, so no answer here can say a recall\napplies to a VIN: these lookups can.",
      "required": [
        "nhtsa",
        "tc"
      ],
      "properties": {
        "maker": {
          "type": [
            "string",
            "null"
          ],
          "description": "The maker's own lookup by VIN, where one is on file."
        },
        "nhtsa": {
          "type": "string",
          "description": "NHTSA's lookup by VIN, for the United States."
        },
        "tc": {
          "type": "string",
          "description": "Transport Canada's recall search, for Canada."
        }
      }
    }
  }
}