Open hf-kklein opened 9 months ago
Docs should state the actual data to be expected from the API.
Docs say, that sensortype is not optional: https://docs.opensensemap.org/#api-Boxes-getBox
But users can create (manually configured) senseboxes with empty sensortype via the OpenSenseMap UI.
When retrieving those sensors via the API, they wont not have the sensorType key
sensorType
Tried to download all senseboxes in an area. The unmarshalling failed because of this 1 broken sensor.
Expected Behavior
Docs should state the actual data to be expected from the API.
Current Behavior
Docs say, that sensortype is not optional: https://docs.opensensemap.org/#api-Boxes-getBox
But users can create (manually configured) senseboxes with empty sensortype via the OpenSenseMap UI.
When retrieving those sensors via the API, they wont not have the
sensorType
keyPossible Solution
Steps to Reproduce (for bugs)
Context
Tried to download all senseboxes in an area. The unmarshalling failed because of this 1 broken sensor.