malli

Chip 2025-02-24T14:19:50.205459Z

I cannot figure out what is wrong with this schema code.

Chip 2025-02-24T14:29:27.804149Z

Maybe this is working as expected.

opqdonut 2025-02-24T14:34:48.187549Z

schema? is only true for actual Schema objects, not bits of data like [:map ...]

opqdonut 2025-02-24T14:34:59.520459Z

try m/schema instead to convert the data into a Schema object

opqdonut 2025-02-24T14:35:20.335069Z

medn/read-string is doing m/schema for you, of course

Chip 2025-02-24T14:36:05.419819Z

Thanks. I'm painfully new.

opqdonut 2025-02-24T14:36:06.731919Z

it's easy to get mixed up with these since pretty much all malli functions accept data as well as a Schema object

opqdonut 2025-02-24T14:36:39.859589Z

you very rarely actually need m/schema?

1
Chip 2025-02-24T14:37:00.684939Z

Malli is a miracle really. Thank you.

opqdonut 2025-02-24T14:37:17.983199Z

have fun!