{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.ruter.no/adt/ota/api/v3.3/sensors/wind.json",
  "type": "object",
  "title": "Wind",
  "description": "Schema for wind speed and direction sensor data",
  "required": [
    "eventTimestamp",
    "traceId",
    "messageNumber",
    "sensorId",
    "speed",
    "direction"
  ],
  "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."
    },
    "speed": {
      "type": "number",
      "description": "Wind speed in meters per second (m/s)"
    },
    "direction": {
      "type": "integer",
      "description": "Wind direction in degrees from true north (0-359°)"
    }
  },
  "additionalProperties": true
}
