{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.ruter.no/adt/ota/api/v4.x/sensors/windscreen-wiper/windscreen-wiper.json",
  "type": "object",
  "title": "WindscreenWiper",
  "description": "Schema for windscreen wiper sensor data. The value represents the the active status of the windscreen wipers",
  "required": [
    "eventTimestamp",
    "traceId",
    "messageNumber",
    "sensorId",
    "value"
  ],
  "properties": {
    "eventTimestamp": {
      "$id": "#/properties/eventTimestamp",
      "type": "string",
      "description": "ISO 8601 timestamp in UTC (must end with 'Z'), indicating when the measurement was taken",
      "example": "2025-05-13T12:00:00.000Z"
    },
    "traceId": {
      "$id": "#/properties/traceId",
      "type": "string",
      "description": "Unique identifier for tracing this message",
      "example": "baf3d8ac-1234-4e0c-9e9e-abc123def456"
    },
    "messageNumber": {
      "$id": "#/properties/messageNumber",
      "type": "integer",
      "description": "Sequence number, increased by one for each new message",
      "example": 42
    },
    "sensorId": {
      "$id": "#/properties/sensorId",
      "type": "string",
      "description": "Unique identifier for the sensor. Typically the serial number (S/N) from the sensor.",
      "example": "SN-456789"
    },
    "value": {
      "$id": "#/properties/value",
      "type": "boolean",
      "description": "Indicating weather the windscreen wiper is active",
      "example": true
    }
  },
  "additionalProperties": true
}
