malli

https://github.com/metosin/malli :malli:
steveb8n 2020-11-25T05:45:02.132900Z

@ikitommi is ::keys in this line a bug? https://github.com/metosin/malli/blob/master/src/malli/transform.cljc#L337

ikitommi 2020-11-25T05:48:39.133100Z

@steveb8n not a bug, it uses qualified keys for configuration: https://github.com/metosin/malli/blob/master/test/malli/transform_test.cljc#L207

steveb8n 2020-11-25T05:49:19.133400Z

ok. TIL a new destructing syntax 🙂

ikitommi 2020-11-25T05:50:30.133600Z

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

1👍
ikitommi 2020-11-25T05:53:34.135500Z

@ordnungswidrig right, it the vector syntax for now.

Elso 2020-11-25T11:37:58.136300Z

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

ikitommi 2020-11-25T15:19:06.139500Z

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

ikitommi 2020-11-26T18:33:20.144200Z

👍

Elso 2020-11-30T08:24:06.162800Z

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

ikitommi 2020-11-25T15:19:13.139600Z

https://github.com/metosin/malli/pull/211

rutledgepaulv 2020-11-25T15:22:32.139900Z

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