{
  "$id": "https://schemas.ruter.no/adt/ota/api/v3.0/pe/vehicle/api/api.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Api",
  "type": "object",
  "required": [
    "eventTimestamp",
    "traceId",
    "operatorRef",
    "vehicleId",
    "apiVersion"
  ],
  "description": "Vehicle API topic",
  "additionalProperties": true,
  "properties": {
    "eventTimestamp": {
      "$id": "#/properties/eventTimestamp",
      "type": "string",
      "description": "As specified in the [ADT documentation.](https://adt.transhub.io)",
      "format": "date-time"
    },
    "traceId": {
      "$id": "#/properties/traceId",
      "type": "string",
      "description": "A unique identifier - UUID"
    },
    "operatorRef": {
      "$id": "#/properties/operatorRef",
      "type": "string",
      "description": "A unique identifier of the PTO. This is the same as the operatorId in the topic"
    },
    "vehicleId": {
      "$id": "#/properties/vehicleId",
      "type": "string",
      "description": "A unique identifier of the vehicle - VIN"
    },
    "apiVersion": {
      "$id": "#/properties/apiVersion",
      "type": "string",
      "description": "Specifies which version of the API the vehicle is using"
    }
  }
}
