Effect CommunityEC
Effect Community3y ago
10 replies
pigoz

Converting camelCase to snake_case and vice-versa in schema for REST API

What's the recommended way to convert camelCase to snake_case and vice-versa in schema?

In particular I'd like to convert object keys from snake_case to camelCase when decoding and camelCase to snake_case when encoding.

(Basically my REST API uses snake_case)
Was this page helpful?