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
Unknown Object (File)
Nov 26 2024, 3:03 AM
Unknown Object (File)
Nov 22 2024, 3:16 PM
Unknown Object (File)
Nov 22 2024, 10:01 AM
Unknown Object (File)
Nov 6 2024, 4:27 AM
Unknown Object (File)
Nov 6 2024, 4:27 AM
Unknown Object (File)
Nov 6 2024, 4:26 AM
Unknown Object (File)
Nov 6 2024, 4:22 AM
Unknown Object (File)
Oct 2 2024, 9:14 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