metosin / reitit

A fast data-driven routing library for Clojure/Script
https://cljdoc.org/d/metosin/reitit/
Eclipse Public License 1.0
1.42k stars 254 forks source link

Route data validation using malli #682

Open evaogbe opened 4 months ago

evaogbe commented 4 months ago

Is it possible to validate route data using malli instead of spec? Since both malli and reitit are metosin libraries built on data-oriented concepts, it'd be nice to see them work together for validation of middleware or interceptors. If more libraries are fully compatible with malli, then it reduces the need for having the app schemas straddle spec alpha and malli. Is this a thing that already exists or could be added?

ikitommi commented 4 months ago

not yet. should be. the original nudge to write malli was the limitations of spec for doing this. just needs to be done 🙂