reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
2020-10-03T05:14:45.050500Z

I’m not sure if this is the place to ask this. I’m trying to incorporate a validation constraint that’s not a spec specific predicate and I’m having quite the time getting it to work on the data validation side of things. The predicate is essentially just a regex pattern conformance test. Are there any examples of getting a spec based &/or spec tool based data validation working with swagger ? Would I be better served just switching to Malli?

kingmob 2020-10-03T21:14:11.051700Z

Does anyone have any experience with some of the less well-known metosin libs? Are sieppari or eines stable enough for production, despite being lsited as alpha?

Linus Ericsson 2020-10-05T10:00:13.054200Z

Metosin usually say they are using the libraries in their own production projects. Sieppari is quite a small library for optimized interceptors but I don't know if you really need that kind of speed and clj/cljs reach - if you do - try it out. it put some more contraints on the interceptor functions handling of the context data than the pretty open-ended pedestal interceptors. regarding eines I did not know about it. For reference, checkout replikativ/kabel which is websocket based as well, and backs the communication of that interesting project. https://github.com/replikativ/kabel and of course also sente, which is a common websocket library. I found it problematic to use a few years ago because it wasnt easily dropped right into pedestal.

kingmob 2020-10-06T14:38:42.069400Z

@oscarlinusericsson Thanks for sharing. I think for now, I'm going to go with Aleph/Manifold. My middleware/interceptor needs are low, my websocket needs are simple, but my need for hardcore async processing on the server is really high.

👍 1