{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://schema.ruter.no/nextstop.json",
  "type": "object",
  "title": "Next Stop MQTT Message",
  "description": "Notification that vehicle has a new next stop",
  "required": [
    "eventTimestamp",
    "stopPlaceId",
    "index"
  ],
  "additionalProperties": false,
  "properties": {
    "eventTimestamp": {
      "$id": "#/properties/eventTimestamp",
      "type": "string",
      "description": "EventTimestamp must be ISO 8601 UTC",
      "format": "date-time"
    },
    "stopPlaceId": {
      "$id": "#/properties/stopPlaceId",
      "type": "string",
      "description": "Stop place id"
    },
    "index": {
      "$id": "#/properties/index",
      "type": "integer",
      "description": "Index of stop place in journey data"
    }
  }
}
