Fork me on GitHub
#ring-swagger
<
2018-06-13
>
jdt13:06:31

compojure-api "2.0.0-alpha20" and clojure.spec (with :coercion :spec) on a PUT request, if I specify :responses {204 {:description "Success." }} it won't compile. I'll get CompilerException java.lang.IllegalArgumentException: No implementation of method: :specify of protocol: #'compojure.api.coercion.spec/Specify found for class: nil. It requires a :schema k/v pair to compile. For now, e.g. :schema (st/spec (constantly true)) (maybe not the right test, but 204's don't have a body and I'm unsure what to put). Anyway, seems like a bug that :schema is required to compile the code.