malli

dominic 2024-12-04T08:23:52.192239Z

Hi! I want to take a schema with maps that have kebab-base keys and turn it into another schema where the maps have camelCase keys. Is there something built in to do these kinds of transformation on the schemas themselves (rather than the values) or do I just need to walk through it (maybe using the AST representation)?

steveb8n 2024-12-04T08:31:16.675429Z

These fns are what you want https://github.com/metosin/malli#programming-with-schemas

1
steveb8n 2024-12-04T08:32:25.570629Z

For recursive changes you can look at the open/closed until fns for inspiration

👍 2
ikitommi 2024-12-04T11:25:17.013439Z

more samples here: https://github.com/metosin/malli/blob/master/docs/tips.md

🙌 1