{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/argyle/refs/heads/main/json-schema/vehicle.json",
  "title": "Vehicle",
  "type": "object",
  "example": {
    "id": "01763a69-5cbe-2edb-ade1-5591157c354d",
    "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
    "identification": "AEWUQ7",
    "make": "Ford",
    "model": "Mondeo",
    "type": "car",
    "year": 1998,
    "vin": "QUICELDKTRQJ4S33C",
    "employer": "GigAndGo",
    "created_at": "2023-02-09T13:42:03.966Z",
    "updated_at": "2023-02-09T13:42:03.966Z",
    "metadata": null
  },
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique ID of the vehicle."
    },
    "account": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the account associated with the vehicle."
    },
    "identification": {
      "type": "string",
      "description": "License plate number or similar vehicle identifier."
    },
    "make": {
      "type": "string",
      "description": "Vehicle brand or manufacturer."
    },
    "model": {
      "type": "string",
      "description": "Vehicle model."
    },
    "type": {
      "type": "string",
      "enum": [
        "car",
        "pedestrian",
        "ebike",
        "bicycle",
        "scooter",
        "motorcycle",
        "other"
      ],
      "description": "The type of vehicle."
    },
    "year": {
      "type": "string",
      "description": "Year the vehicle was made."
    },
    "vin": {
      "type": "string",
      "description": "Vehicle Identification Number (VIN)."
    },
    "employer": {
      "type": "string",
      "description": "Name of the user's employer."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)) when the vehicle object was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)) when a property value of the vehicle object most recently changed."
    },
    "metadata": {
      "type": "object",
      "description": "Additional, non-categorized information."
    }
  }
}