Fork me on GitHub
#malli
<
2022-01-23
>
pithyless08:01:53

I feel I'm missing something obvious; if I've got a [:map [:name :string] [:age :int]] schema, what's the best way to get back the coll of keys [:name :age]?

pithyless09:01:27

Looking at the transformers, I guess it would be:

(some->> schema m/entries (map first) seq)

ikitommi12:01:10

yes, that's it.

lsenjov22:01:23

This is the real Christmas present I’ve been waiting on 🥳

Grant Horner01:01:38

This is awesome! I never used schema, and I'm loving the new malli.experimental/defn. How do you make it play nicely with Cursive? I've been unable configure the cursive resolution to get rid of all the yellow squigglies

ikitommi07:01:12

thanks! You should mark it to be resolved as schrma.core/defn. And go vote up https://github.com/cursive-ide/cursive/issues/2645

👍 1