Page MenuHomePhabricator

[native] rename fields in JSON serialized string to camelCase from snake_case
ClosedPublic

Authored by varun on Sep 11 2023, 7:42 AM.
Tags
None
Referenced Files
F3346833: D9127.diff
Fri, Nov 22, 10:01 AM
Unknown Object (File)
Wed, Nov 6, 4:27 AM
Unknown Object (File)
Wed, Nov 6, 4:27 AM
Unknown Object (File)
Wed, Nov 6, 4:26 AM
Unknown Object (File)
Wed, Nov 6, 4:22 AM
Unknown Object (File)
Oct 2 2024, 9:14 PM
Unknown Object (File)
Sep 27 2024, 10:27 PM
Unknown Object (File)
Sep 27 2024, 10:27 PM
Subscribers

Details

Summary

when we serialize objects in Rust we should use camelCase naming to match JS conventions

Test Plan

called registerUser from JS and the JSON string that I got back had the correct field names

Diff Detail

Repository
rCOMM Comm
Branch
native (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Sep 11 2023, 8:00 AM
native/native_rust_library/src/lib.rs
215

will change this to userID

bartek added inline comments.
native/native_rust_library/src/lib.rs
213–219

I prefer this way - it's more universal

This revision is now accepted and ready to land.Sep 12 2023, 12:16 AM
kamil added inline comments.
native/native_rust_library/src/lib.rs
213–219

+1