malli

https://github.com/metosin/malli :malli:
borkdude 2020-08-30T11:17:09.000400Z

Congrats on the CT grant :)

borkdude 2020-08-30T11:17:36.001Z

Will malli have something like spec/fdef + instrument + unstrument? And will the sequential destructuring be part of the first production release?

ikitommi 2020-08-30T15:51:39.005500Z

@borkdude the first release is planned to be just the current and (hopefully) immutable core on which everything builds on, Here’s the roadmap for the together funding:

1) get a stable release out! lot's of small and some bigger design decisions, tracked via metosin/malli#116

2) help early adopters (users and libraries like reitit, regal, aave and gungnir) to upgrade to use the initial version

After the release, would work on the following:

3) finalize sequence schemas, <https://github.com/metosin/malli/pull/187>

4) enhance developer tooling: 
  - function schemas with clj-kondo integration <https://github.com/metosin/malli/issues/125>
  - pull out and reuse the reitit development time error pretty printer as a separate library (<https://github.com/metosin/virhe>)

5) implement pluggable schema inference

6) parsers

ikitommi 2020-08-30T15:53:33.007100Z

destucturing might be easy to implement using the current explain api, need to visit that for the first release to see will it require changes to the m/explain format.

ikitommi 2020-08-30T15:54:17.007900Z

Vincent has done a great initial work already with the sequence schemas, will dig into that soon.

1
2020-09-01T19:03:05.019700Z

Thx ^_^ I recommend to take the impl from Minimallist as a reference, as it is the most up-to-date and (most importantly) well tested. The work remaining to be done is integration and optimization.

ikitommi 2020-09-02T09:35:28.027200Z

was just about to ask from which codebase should I look this for. Thanks!

2020-09-02T10:48:12.027400Z

the latest commit of the main branch all-work-and-no-play

ikitommi 2020-08-30T15:54:35.008300Z

so, no, but hopefully soon has both.

borkdude 2020-08-30T15:54:44.008600Z

:thumbsup:

ikitommi 2020-08-30T15:59:41.012100Z

merged https://github.com/metosin/malli/pull/249. Adds :double,  `:boolean`,  `:keyword`,  `:symbol`,  `:qualified-keyword`, `:qualified-symbol` and `:uuid`. There is now m/-simple-schema to easily build custom schemas using properties in validation. Could rewrite m/-predicate-schema to use that too.