{
  "$id": "https://schemas.ruter.no/adt/ota/api/v2.1/operational-information/current-block.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CurrentBlock",
  "type": "object",
  "required": [
    "fromDateTime",
    "state"
  ],
  "description": "Current block",
  "additionalProperties": true,
  "properties": {
    "fromDateTime": {
      "$id": "#/properties/fromDateTime",
      "type": "string",
      "description": "Time from which the sign on or assignment applies. ISO 8601, UTC."
    },
    "state": {
      "$id": "#/properties/state",
      "type": "string",
      "description": "Possible values in examples.",
      "examples": [
        "SIGNED_ON",
        "ASSIGNED",
        "NOT_ASSIGNED"
      ]
    },
    "blockRef": {
      "$id": "#/properties/blockRef",
      "type": "string",
      "description": "Not provided if not assigned or not signed on, otherwise provided as a Block identifier."
    },
    "operatingDay": {
      "$id": "#/properties/operatingDay",
      "type": "string",
      "description": "Not provided if not assigned, otherwise provided as the scheduled date of the block on the format “YYYY-MM-DD”. Maybe different from calendar date."
    }
  }
}
