Fork me on GitHub
#pedestal
<
2017-01-25
>
christianromney13:01:03

Pedestal context maps (and by extension Ring request / response maps) seem like a perfect use case for clojure.spec

christianromney13:01:16

i've been bitten more than once when carelessly implementing an interceptor that returns a response instead of a context. clojure.spec can help me enforce that all my interceptors are functions from context -> context

christianromney13:01:56

would be nice to establish some patterns here and maybe even push that down into the library 🙂

mtnygard22:01:09

@christianromney I definitely think that's a good use case. We've been holding off on that until 1.9 is released.

christianromney22:01:29

that makes sense

christianromney22:01:14

thanks for the roadmap update @mtnygard