malli

https://github.com/metosin/malli :malli:
steveb8n 2020-07-15T07:54:03.162700Z

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

steveb8n 2020-07-15T07:54:43.163500Z

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

steveb8n 2020-07-15T07:54:52.163700Z

works great!

๐Ÿ‘ 2
ikitommi 2020-07-15T08:16:38.168700Z

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)

ikitommi 2020-07-15T08:17:50.169Z

ikitommi 2020-07-16T08:55:44.172400Z

๐Ÿ‘

ikitommi 2020-07-15T08:18:38.169800Z

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

steveb8n 2020-07-15T08:31:54.170800Z

thatโ€™s an interesting idea. this could also be used with Fork to generate forms. might have to try that ๐Ÿ™‚

steveb8n 2020-07-15T08:32:30.171200Z

how far weโ€™ve come from multi-tenant validation!

rutledgepaulv 2020-07-15T21:21:57.171900Z

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

rutledgepaulv 2020-07-15T21:22:26.172200Z

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