malli

https://github.com/metosin/malli :malli:
Casey 2020-08-21T13:07:04.007400Z

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

Casey 2020-08-21T13:09:23.008Z

Is it not a schema? Why not?

ikitommi 2020-08-21T13:12:42.008200Z

it’s just data?

Casey 2020-08-21T13:23:30.009300Z

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

πŸ‘ 1
ikitommi 2020-08-21T13:24:48.009700Z

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

ikitommi 2020-08-21T13:25:27.010900Z

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

Casey 2020-08-21T13:25:48.011500Z

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

πŸ‘Œ 1