Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to camelize keys #52

Open
phelios opened this issue Aug 7, 2019 · 2 comments
Open

Option to camelize keys #52

phelios opened this issue Aug 7, 2019 · 2 comments

Comments

@phelios
Copy link
Contributor

phelios commented Aug 7, 2019

Is there an option to convert all property names to camelCase by default?

Aliases will be too much repetition, and changing all property names to camelCase will break the convention.

@yosiat
Copy link
Owner

yosiat commented Aug 10, 2019

Hi @phelios ,

It is possible to develop such feature building on top aliases, we will need to:

  • Introduce configuration mechanism for Panko, so we can specify such a global option - Panko.config { |c| }
  • Once an attribute is added add an alias based on the casing configuration if there is.

Would you like to submit a PR?

@janklimo
Copy link

janklimo commented Jan 3, 2023

This would be very helpful 👍

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

No branches or pull requests

3 participants