Fork me on GitHub
#malli
<
2020-07-15
>
steveb8n07:07:03

@lucio @ikitommi I updated the demo app with the new composable transformers fix https://stevebuik.github.io/fork-malli-ideas/#!/basics

steveb8n07:07:43

so now we have an example of keyword maps, validated by Malli but also transformed to string keys for Fork inputs

steveb8n07:07:52

works great!

👍 6
ikitommi08:07:38

added the path->schema as malli.util/path-schemas, I think that is useful in things like generating forms from malli Schemas: you get an ordered list of value paths and the corresponding subschemas: 1. you can validate whole schema on blur / submitting 2. you can push subschema validation to components, faster local validation on keypress works for all basic clojure data structures, also for nested sequences (via :malli.core/in marker in path)

rutledgepaulv21:07:57

This sounds like it might help with something I've been pondering while working on https://github.com/RutledgePaulV/ui-kit! Still working out some of the state structure / data validation / conformance stuff before I go hard on nailing down all the component types

rutledgepaulv21:07:26

Trying to do minimal redraws and making sense of reagent cursors + malli trees

ikitommi08:07:38

e.g. just iterate the map entries and emit form components

steveb8n08:07:54

that’s an interesting idea. this could also be used with Fork to generate forms. might have to try that 🙂

steveb8n08:07:30

how far we’ve come from multi-tenant validation!