Regarding: https://metosin.github.io/reitit/ring/swagger.html: create-swagger-handler returns a Clojure map, but in the simple example, there's no Muuntaja or other response encoder. If you try to access swagger.json, you'll get this:
java.lang.IllegalArgumentException: No implementation of method: :write-body-to-stream of protocol: #'ring.core.protocols/StreamableResponseBody found for class: clojure.lang.PersistentArrayMap
Regarding: https://metosin.github.io/reitit/ring/swagger.html:
create-swagger-handler
returns a Clojure map, but in the simple example, there's no Muuntaja or other response encoder. If you try to accessswagger.json
, you'll get this: