Fork me on GitHub
#malli
<
2020-08-21
>
Casey13:08:04

Following the local registry example at https://github.com/metosin/malli#local-registry calling (malli.core/schema? Adult) => false . This surprises me..

Casey13:08:23

Is it not a schema? Why not?

ikitommi13:08:42

itโ€™s just data?

Casey13:08:30

Ah, I see. I see it expects a Schema protocol.... and you can use m/schema to turn the data into a Schema entity

๐Ÿ‘ 3
ikitommi13:08:48

I think the m/schema? is not that useful, could be removed.

ikitommi13:08:27

as most of the functions consume data, Schema or IntoSchema .

Casey13:08:48

m/schema? is used in some fdef specs in gungnir

๐Ÿ‘Œ 3