Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Zome API function name formatting / casing #2037

Open
pospi opened this issue Jan 3, 2020 · 0 comments
Open

Zome API function name formatting / casing #2037

pospi opened this issue Jan 3, 2020 · 0 comments

Comments

@pospi
Copy link

pospi commented Jan 3, 2020

It would be nice to have more flexibility in the way JSONRPC function names are exposed to the outside world. Primarily because Holochain uses snake_case parameter and function names, and the reference API for our app uses lowerCamelCase. So, any of our client-side code that deals with multi-word parameter names needs to do this kind of translation.

I would advocate support for something similar to the #[serde(rename_all = "camelCase")] attribute which can be optionally added after the #[zome_fn(...)] macros to control this behaviour.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant