reitit 2025-05-27

Heads up: I think 0.9.0 breaks for many users. Coercion will throw a null pointer exception if it encounters a response code that's not listed under :responses. That's not intentional. I hope verify this and to have a fix out real soon. EDIT: version number

🫡 3

is there an issue for this? (for linkback purposes)

Release 0.9.1 is out

🙌 3

Hey! We're using reitit and muuntaja in one project. We're trying to have a route return an edn data structure. We manage to get reitit (with the help of muuntaja middlewares) to return an edn string from our route. However, we can't seem to get muuntaja to serialize custom tagged literals like #object[java.time.OffsetDateTime 0x33ef7a96 \"2025-05-21T12:48:40.944825Z\"] , so currently the returned edn string contains these tagged literal. Example of the returned edn string "{:timestamp #object[java.time.OffsetDateTime 0x33ef7a96 \"2025-01-01T12:00:00.000000Z\"]} Is there anyway to get muuntaja or some reitit middleware to serialize tagged literals when encoding edn to strings?

edn serialization goes through clojure.edn the encoder doesn't take options on how to encode custom classes, instead you just need to extend clojure.core/print-method for those classes

Thanks! This was precisely what we were looking for!