Fork me on GitHub
#reitit
<
2020-10-03
>
vaedasynapse05:10:45

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?

Matthew Davidson (kingmob)21:10:11

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 Ericsson10:10:13

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.

Matthew Davidson (kingmob)14:10:42

@UQY3M3F6D 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.

👍 3