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
F3348583: D9127.id30931.diff
Fri, Nov 22, 3:16 PM
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
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Sep 11 2023, 8:00 AM
native/native_rust_library/src/lib.rs
215 ↗(On Diff #30931)

will change this to userID

bartek added inline comments.
native/native_rust_library/src/lib.rs
213–219 ↗(On Diff #30931)

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 ↗(On Diff #30931)

+1