{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.ruter.no/adt/ota/api/v3.0/pe/cardreader-diagnostics/vix/vix-cardreader_diagnostics.json",
  "type": "object",
  "title": "VixCardreaderDiagnostics",
  "required": [
    "eventTimestamp",
    "traceId",
    "deviceRef",
    "inService"
  ],
  "additionalProperties": false,
  "properties": {
    "eventTimestamp": {
      "$id": "#/properties/eventTimestamp",
      "type": "string",
      "description": "Time of diagnostics generated. As specified in the [ADT documentation.](https://adt.transhub.io)",
      "format": "date-time"
    },
    "traceId": {
      "$id": "#/properties/traceId",
      "type": "string",
      "description": "A unique identifier to be able to trace this message. Also used to detect duplicate messages received."
    },
    "deviceRef": {
      "$id": "#/properties/deviceRef",
      "type": "string",
      "description": "Unique identifier for the device. This value is appended to the published topic"
    },
    "inService": {
      "$id": "#/properties/inService",
      "type": "boolean",
      "description": "Whether or not the device is operational",
      "examples": [
        "true",
        "false"
      ]
    }
  }
}
