{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.ruter.no/adt/ota/api/v3.0/sensors/telemetry/temperature-water.json",
  "type": "object",
  "title": "Temperature Water",
  "description": "Schema for water temperature sensor data",
  "required": [
    "eventTimestamp",
    "traceId",
    "messageNumber",
    "sensorId",
    "value"
  ],
  "properties": {
    "eventTimestamp": {
      "type": "string",
      "description": "ISO 8601 timestamp of when the measurement was taken"
    },
    "traceId": {
      "type": "string",
      "description": "Unique identifier for tracing this message"
    },
    "messageNumber": {
      "type": "integer",
      "description": "Sequence number, increased by one for each new message"
    },
    "sensorId": {
      "type": "string",
      "description": "Unique identifier for the sensor. Typically the serial number (S/N) from the sensor."
    },
    "value": {
      "type": "number",
      "description": "Water temperature in Celsius"
    }
  },
  "additionalProperties": true
}
