Fork me on GitHub
#reitit
<
2017-11-27
>
ikitommi06:11:40

Morning. Ported the tuned json & string coercions from ring-swagger into schema-tools (and to ClojureScript!) and did a reitit-schema module with the bindings. Example here: https://metosin.github.io/reitit/ring/coercion.html#example-with-schema

ikitommi06:11:33

Added also a middleware to turn the coercion-exceptions into http-responses. In real life this would be done by a single exception handling middleware / interceptor. Could copy those from compojure-api & kekkonen, but not sure how much more batteries should be included in reitit….

ikitommi06:11:11

@yogthos would you be interested in testing the (schema-)coercions with macchiato/node? all tests are run with headless-chrome, node & advanced compilation, but haven’t run those actually with the real server on cljs.

ikitommi06:11:35

same with spec & data-specs.

yogthos14:11:27

yeah sure, and feel free to add things to macchiato as well, you should have write access on all the repos