metosin / reitit

A fast data-driven routing library for Clojure/Script
https://cljdoc.org/d/metosin/reitit/
Eclipse Public License 1.0
1.43k stars 256 forks source link

Response encoding missing from Swagger example #178

Closed miikka closed 5 years ago

miikka commented 5 years ago

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
ikitommi commented 5 years ago

PR welcome to boost the docs.