viser icon indicating copy to clipboard operation
viser copied to clipboard

Automatic camelCase <-> snake case conversion for message fields

Open brentyi opened this issue 2 years ago • 2 comments

We define messages in Python right now (https://github.com/nerfstudio-project/viser/blob/main/viser/_messages.py) that are automatically translated to TypeScript interfaces (https://github.com/nerfstudio-project/viser/blob/main/viser/client/src/WebsocketMessages.tsx).

The field names are currently always the same (and thus snake case because messages are defined originally in Python), but it'd be nice if the TypeScript end of things used camel case. Camel case will also make the websocket messages slightly smaller. :)

brentyi avatar May 28 '23 20:05 brentyi

Hello brentyi, I would like to take this up. Please assign this issue to me.

akansjain avatar May 28 '23 21:05 akansjain

@akansjain assigned you! Sorry for the late reply!

brentyi avatar Jun 05 '23 22:06 brentyi