{
  "$id": "https://schemas.ruter.no/adt/ota/api/v3.0/pe/doors-individually/doors-individually.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "DoorsIndividually",
  "type": "object",
  "required": [
    "traceId",
    "eventTimestamp",
    "doorRef",
    "isOpen"
  ],
  "description": "This object is used to represent a door individually.",
  "additionalProperties": true,
  "properties": {
    "traceId": {
      "$id": "#/properties/traceId",
      "$comment": "Added in version 2.5",
      "type": "string",
      "description": "A unique identifier to be able to trace this message. Also used to detect duplicate messages received."
    },
    "eventTimestamp": {
      "$id": "#/properties/eventTimestamp",
      "type": "string",
      "description": "As specified in the [ADT documentation.](https://adt.transhub.io). Reflects the current UTC time."
    },
    "messageNumber": {
      "$id": "#/properties/messageNumber",
      "$comment": "Added in version 3.3",
      "type": "number",
      "description": "[Optional] - Sequence number that should generated on the vehicle and increased by one for each new message. Used to validate consistency in the data stream."
    },
    "doorRef": {
      "$id": "#/properties/doorRef",
      "type": "string",
      "description": "Has to be the same reference as is used in the topic sensors/apc_sensors."
    },
    "isOpen": {
      "$id": "#/properties/isOpen",
      "type": "boolean",
      "description": "True if the door is open.",
      "examples": [
        "true",
        "false"
      ]
    }
  }
}
