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

Camelcase for Zod items #602

Open
ayazemre opened this issue Sep 17, 2024 · 1 comment
Open

Camelcase for Zod items #602

ayazemre opened this issue Sep 17, 2024 · 1 comment

Comments

@ayazemre
Copy link

Hello,

Is there any way to make properties camelcase not only names? An example like this:

first_name: z.string() -------> firstName: z.string()

Thank you.

@kristiandupont
Copy link
Owner

You could write a pre-render hook that comes after the zod hook. It would simply scan through the names and change them. Look into the documentation to get started or let me know if something is unclear!

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

No branches or pull requests

2 participants