Fork me on GitHub

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.