WIP: fix(generator): delete client emits rpc_call::<bool>, not String #28
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_rpc!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_delete_deserialize_type"
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
Every
*_delete()method in the Rust SDK was emittingrpc_call::<String>while the server sends{"result": true}(JSON bool). Result: every delete fails client-side withinvalid type: booleantrue, expected a string— even though the server deleted successfully. Observed onproject.deletebut the same generator path covers every domain.Switch to
rpc_call::<bool>atcrates/generator/src/rust/rust_client.rs:208so the client matches the actual wire format.Test plan
*_deletemethods, delete flow returnsOk(())cleanly.Closes lhumina_code/hero_osis#29
Server-side delete handlers return bool (via to_string-then-jsonify). The wire response is a JSON boolean. The Rust client generator was emitting rpc_call::<String>, which then fails with: invalid type: boolean `true`, expected a string Every *_delete() method across every generated SDK hits this — on success. Switch the generator to emit rpc_call::<bool> so the client deserialises against what the server actually sends. Closes lhumina_code/hero_osis#29View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.