You could also declare the schema in camelCase and use a preprocess setup to do your conversion, but

You could also declare the schema in camelCase and use a preprocess setup to do your conversion, but you'll need to guard the preprocessor, too, so maybe even some kind of piping of z.record(z.string()).pipe(z.preprocess(camelCaseify, MySchema)) might make sense
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?