You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add deserialize_empty_array_or_hashmap helper function
Provides a field-level serde helper to handle WordPress's inconsistent
JSON responses where empty objects are sometimes returned as empty arrays.
Changes:
- Add `deserialize_empty_array_or_hashmap` function in `wp_serde_helper`
- Use dedicated visitor pattern to avoid 'static lifetime constraints
- Add comprehensive unit tests for the new helper
- Simplify `WpApiDetailsAuthenticationMap` to use field annotation instead of custom Deserialize impl
0 commit comments