{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An electric vehicle safety recall published by Destination Charged, sourced from NHTSA (US) or Transport Canada (CA). Paired with a site.standard.document record for the human-readable recall page.",
      "key": "any",
      "record": {
        "properties": {
          "campaignId": {
            "description": "NHTSA campaign number (US) or Transport Canada recall number (CA).",
            "maxLength": 64,
            "type": "string"
          },
          "component": {
            "description": "Component system affected (colon-delimited hierarchy for US).",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "consequence": {
            "maxGraphemes": 2000,
            "maxLength": 20000,
            "type": "string"
          },
          "country": {
            "knownValues": [
              "US",
              "CA"
            ],
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "dcPostUrl": {
            "description": "Destination Charged recall page permalink.",
            "format": "uri",
            "type": "string"
          },
          "documentRef": {
            "description": "The site.standard.document record for this recall's page.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "make": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "manufacturer": {
            "maxGraphemes": 200,
            "maxLength": 2000,
            "type": "string"
          },
          "modelYears": {
            "description": "Model years affected, as strings (single years or ranges).",
            "items": {
              "maxGraphemes": 10,
              "maxLength": 100,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "models": {
            "items": {
              "maxGraphemes": 100,
              "maxLength": 1000,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "potentialUnits": {
            "description": "Potential number of vehicles affected.",
            "minimum": 0,
            "type": "integer"
          },
          "remedy": {
            "maxGraphemes": 2000,
            "maxLength": 20000,
            "type": "string"
          },
          "reportedAt": {
            "description": "Date the recall report was received by the authority.",
            "format": "datetime",
            "type": "string"
          },
          "site": {
            "description": "AT-URI of the site.standard.publication this recall is published under.",
            "format": "at-uri",
            "type": "string"
          },
          "sourceUrl": {
            "description": "Official NHTSA / Transport Canada detail page.",
            "format": "uri",
            "type": "string"
          },
          "summary": {
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "summaryFr": {
            "description": "French-language summary (Transport Canada recalls).",
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          }
        },
        "required": [
          "campaignId",
          "country",
          "make",
          "summary",
          "reportedAt",
          "sourceUrl",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.destinationcharged.recall",
  "lexicon": 1
}
