Fork me on GitHub

@roseneck if the strip-extra-keys-transformer is not enough (just map keys), please provide an example with schema, input and expected output.


Hi all, just wonder if there is a malli schema for validating reitit route? like the reitit.spec namespace in reitit.core but for malli. My use case is describing API endpoints and referencing the reitit route for each endpoint would be great. Thanks.

👍 3

not yet. One of the initial reasons for creating malli was to have a tool where one can deep-merge nested schemas without tears, to be used in reitir route data validation.


would you be interested in a PR?


Hi there! Missing spec's validation now that I've migrated to malli, I rolled my own thing: Let me know what you think! 😄

👍 3

I wonder, didn't malli already have something to instrument functions with malli schemas? if not so, how were the function specs intended to be used?


If there is, I couldn't find it anywhere 🤷 What's there, besides function schema syntax, is a global function registry and a macro, m/=> to add functions to that registry. I just built a super simple thing on top of all this


@setzer22 looks good. Plan is to have the instrumentation in malli core lib, but just not there yet, see:

👍 3
Ian Fernandez12:04:57

I've made some questions asking about Intrument impl

Ian Fernandez12:04:09

what malli expects for it


noticed, thanks! need to think it over before answering.

clojure-spin 4

... but the idea seems exactly what you have already implemented. Maybe the lib could be just a new ns under malli?


@ikitommi Oh, I'd be glad to contribute if you think it fits! 👍


let me know if you'd like me to submit a PR with this