From 6c3db021636c43da8499361785b6dca682927c1d Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Thu, 16 Mar 2023 10:08:06 +0200 Subject: [PATCH] doc: openapi content type for file download in examples/http-swagger --- examples/http-swagger/src/example/server.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/http-swagger/src/example/server.clj b/examples/http-swagger/src/example/server.clj index c7251d9c..d0a9164e 100644 --- a/examples/http-swagger/src/example/server.clj +++ b/examples/http-swagger/src/example/server.clj @@ -76,6 +76,8 @@ ["/download" {:get {:summary "downloads a file" :swagger {:produces ["image/png"]} + :responses {200 {:description "an image" + :content {"image/png" any?}}} :handler (fn [_] {:status 200 :headers {"Content-Type" "image/png"}