Fork me on GitHub
#biff
<
2023-04-14
>
Cameron21:04:34

@foo I thought I saw somewhere that the schemas defined in the map in schema.clj get registered globally. If I define my schemas for my application there, how do I access these with Malli? I seem to be missing something 🙃

Jacob O'Bryant22:04:24

schemas aren't registered globally in the same way they are in spec, but they are stored in the system map under the :biff/malli-opts key: https://github.com/jacobobryant/biff/blob/master/example/src/com/example.clj#L53 You can use that like so: https://github.com/jacobobryant/biff/blob/master/src/com/biffweb/impl/xtdb.clj#L232

Cameron22:04:08

Ah excellent, thank you 😄