Skip to content

Conversation

@jovandeginste
Copy link

No description provided.

@jovandeginste jovandeginste force-pushed the patch-1 branch 3 times, most recently from feb4561 to 7dcc34c Compare February 13, 2025 15:50
Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
The Fitbit API sometimes returns a single error instead of an array of errors.
This commit modifies the `ErrorResponse` unmarshaling logic to correctly handle
both single and multiple error responWes.

The `rawErrorResponse` struct is updated to include an optional `Error` field
alongside the `Errors` array. The unmarshaling logic now checks for the presence
of the `Error` field and appends it to the `Errors` array if it exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant