But in the sdk code we are having dictionary as data Type which is breaking and giving error-
pydantic_core._pydantic_core.ValidationError: 18 validation errors for ReadingsGetReadingsHistoryResponseBody
data.0.value
Input should be a valid dictionary [type=dict_type, input_value='closed', input_type=str]
For further information visit https://errors.pydantic.dev/2.11/v/dict_type
value: typing.Optional[str] = pydantic.Field(default=None)
"""
The value of the reading.
"""
we are getting string for
valuefield from the response of api https://api.samsara.com/readings/history as given in https://developers.samsara.com/reference/getreadingshistoryBut in the sdk code we are having dictionary as data Type which is breaking and giving error-
pydantic_core._pydantic_core.ValidationError: 18 validation errors for ReadingsGetReadingsHistoryResponseBody
data.0.value
Input should be a valid dictionary [type=dict_type, input_value='closed', input_type=str]
For further information visit https://errors.pydantic.dev/2.11/v/dict_type
So i propose to change the in line https://github.com/samsarahq/samsara-python/blob/master/src/samsara/types/reading_history_response_body.py#L35
to make this