{
  "$id": "https://schemas.ruter.no/adt/ota/api/v4.x/pe/doors-individually/doors-individually.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "DoorsIndividually",
  "type": "object",
  "required": [
    "traceId",
    "eventTimestamp",
    "messageNumber",
    "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": "integer",
      "description": "The sequence number is generated per vehicle and per sensor category on the vehicle. For example, three door sensors on a vehicle would share the same messageNumber"
    },
    "doorRef": {
      "$id": "#/properties/doorRef",
      "type": "string",
      "description": "A stable alpha-numeric reference unique within the vehicle scope (vehicle element/train set). When using Door Number as DoorRef, numbering must start at 1 (front of the vehicle)."
    },
    "isOpen": {
      "$id": "#/properties/isOpen",
      "type": "boolean",
      "description": "True if the door is open.",
      "examples": [
        "true",
        "false"
      ]
    }
  }
}
