Fork me on GitHub
#malli
<
2020-11-25
>
steveb8n05:11:19

ok. TIL a new destructing syntax 🙂

ikitommi05:11:30

yes, a handy way to do that. Also, {:keys [::json-vectors]} would work.

👍 3
ikitommi05:11:34

@ordnungswidrig right, it the vector syntax for now.

Elso11:11:58

is there something like a best-effort implementation of a json-schema to malli converter out there?

ikitommi15:11:06

@d.eltzner012 don't think so, there is an old PR, but lot's of todos and last update from jul.

rutledgepaulv15:11:32

I have a half-baked implementation of this for converting kubernetes swagger into malli. I'm using malli to write a clojure kubernetes client with client side validation of operations (similar to aws-api). It handles recursive schemas at least but some of the kubernetes swagger is on the janky side so i'm sure it's not properly general. The whole library is still early stages. https://github.com/RutledgePaulV/kube-api/blob/master/kube-api-core/src/kube_api/core/swagger/malli.clj

Elso08:11:06

👍 very cool still, I'll have a look at it