Regenerate clients with delete returning serde_json::Value #36
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_osis!36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_delete_deserialization_error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Regenerated all 15
osis_client_generated.rsfiles so every CRUD_deletemethod usesrpc_call::<serde_json::Value>instead ofrpc_call::<String>.Why
Server
*_rpc_deletehandlers returndeleted.to_string()("true"/"false"). The dispatch layer in hero_rpc auto-parses that string as JSON before placing it in the response — so the wire result is a JSON bool, not a JSON string. The old SDK usedrpc_call::<String>and rejected the bool withinvalid type: boolean true, expected a string at line 1 column 30. The delete already happened server-side; only the UI saw an error.Using
Valuemakes the SDK tolerant of whatever shape the dispatch produces, which is the correct posture for a discarded return value.Scope
_deleteper CRUD type, mechanical regeneration.pub async fn xxx_delete(&self, sid: &str) -> Result<(), ClientError>.wasm32-unknown-unknown.Refs
fix(sdk): regenerate clients with delete returning serde_json::Valueto Regenerate clients with delete returning serde_json::Value846faa4864188b0e7c57