[PM-36839] Merge API errors#1050
Conversation
Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR unifies Code Review DetailsNo findings. |
🔍 SDK Breaking Change DetectionSDK Version:
Breaking change detection uses the build of the SDK from this branch, including any incompatibities pre-existing on or merged into this branch. Check the workflow logs to confirm. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1050 +/- ##
==========================================
+ Coverage 84.12% 84.17% +0.05%
==========================================
Files 446 445 -1
Lines 58817 58725 -92
==========================================
- Hits 49478 49434 -44
+ Misses 9339 9291 -48 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3dbb193 to
f1b4c56
Compare
## 🎟️ Tracking https://bitwarden.atlassian.net/browse/PM-36839 ## 📔 Objective Prepare the Error type in `bitwarden-api-base` so it can be merged with the one in `bitwarden-core`. This requires: - UniFFI support - ResponseContent variant as it's own type, rather than inline in the enum, and without a generic type. Also renamed the variant to not have the `Error` suffix Once this change is done, we can proceed with merging both error types, which is done on a separate PR as it involves basically every team: #1050 ## 🚨 Breaking Changes <!-- Does this PR introduce any breaking changes? If so, please describe the impact and migration path for clients. If you're unsure, the automated TypeScript compatibility check will run when you open/update this PR and provide feedback. For breaking changes: 1. Describe what changed in the client interface 2. Explain why the change was necessary 3. Provide migration steps for client developers 4. Link to any paired client PRs if needed Otherwise, you can remove this section. -->
f1b4c56 to
60ceabd
Compare
|
harr1424
left a comment
There was a problem hiding this comment.
Tools owned changes to Sends look good!



🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-36839
📔 Objective
Remove the API error from
bitwarden-coreand reexport the one frombitwarden-api-baseinstead, which is now identical. We can also finally remove the unused generic type parameter inError.This change will save every user of the API bindings from having to do a manual
.map_err()orimpl<T> From<bitwarden_api_api::apis::Error<T>>every time they interact with an API error.🚨 Breaking Changes