Skip to content

refactor(sdk): narrow deserialization error handling#89

Merged
matoous merged 1 commit intomainfrom
md/improve-error-handling
Apr 10, 2026
Merged

refactor(sdk): narrow deserialization error handling#89
matoous merged 1 commit intomainfrom
md/improve-error-handling

Conversation

@matoous
Copy link
Copy Markdown
Contributor

@matoous matoous commented Apr 10, 2026

Only suppress JSON parsing failures in ApiClient.TryDeserialize
instead of swallowing all exceptions. This keeps malformed API
payloads non-fatal while allowing unrelated runtime errors to
surface instead of being hidden behind default values.

Add tests covering both malformed JSON fallback behavior and
propagation of non-JSON exceptions.

Only suppress JSON parsing failures in `ApiClient.TryDeserialize`
instead of swallowing all exceptions. This keeps malformed API
payloads non-fatal while allowing unrelated runtime errors to
surface instead of being hidden behind default values.

Add tests covering both malformed JSON fallback behavior and
propagation of non-JSON exceptions.
@matoous matoous self-assigned this Apr 10, 2026
@matoous matoous merged commit 80ce5b0 into main Apr 10, 2026
9 checks passed
This was referenced Apr 10, 2026
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