malli 2021-10-04

What is the relationships between decode and validate? Are we suppose to validate after a value has been successfully decoded?

Decode never "fails", it's a best effort to get data to look like what should be validated. Validation should be done after decode

🙏 1

after decode and before validation you can't really know if the data is valid, yet

Yehonathan Sharvit 2021-10-04T12:03:01.166Z

Makes sense @ben.sless . Thanks

👍 1

How can I do a schema, which allows maps of "any key" of a certain type , string for example (or qualified symbols)

is anyone aware of any work being done on OpenAPI (v2/v3) to Malli conversion? we are using https://github.com/oliyh/martian to talk to many APIs, and we love it, but it's using Plumatic Schema and we would like to use Malli instead.

im just watching https://www.youtube.com/watch?v=gMYQ1vDy7d0 and learnt that OpenAPI v3.1 is gonna be fully compatible with JSON Schema draft 8