{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.ruter.no/adt/ota/api/v3.0/pe/dpi/pa/dpi-pa.json",
  "title": "DpiPa",
  "type": "object",
  "required": [
    "eventTimestamp",
    "traceId",
    "ref"
  ],
  "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"
    },
    "ref": {
      "$id": "#/properties/ref",
      "type": "string",
      "examples": [
        "757fd8b4-2e57-4ad3-9aee-76e793c514d9"
      ]
    },
    "content": {
      "$id": "#/properties/content",
      "title": "Content",
      "type": "array",
      "items": {
        "$id": "#/properties/content/items",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "$id": "#/properties/content/items/type",
            "title": "Content type",
            "type": "string",
            "examples": [
              "VIDEO",
              "IMAGE",
              "HTML",
              "TEXT"
            ]
          },
          "duration": {
            "$id": "#/properties/content/items/duration",
            "type": "integer",
            "examples": [
              10
            ]
          },
          "src": {
            "$id": "#/properties/content/items/src",
            "type": "string",
            "examples": [
              "../media/1080p_Ruter_Takk.mp4"
            ]
          }
        }
      }
    }
  }
}
