From 55854f6652722d4d2f004409a112a062d66e3134 Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Mon, 28 Aug 2023 11:22:42 +0300 Subject: [PATCH] doc: add openapi response content type to examples/ring-spec-swagger --- examples/ring-spec-swagger/src/example/server.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/ring-spec-swagger/src/example/server.clj b/examples/ring-spec-swagger/src/example/server.clj index fe0ba885..7991aaa2 100644 --- a/examples/ring-spec-swagger/src/example/server.clj +++ b/examples/ring-spec-swagger/src/example/server.clj @@ -67,6 +67,8 @@ ["/download" {:get {:summary "downloads a file" :swagger {:produces ["image/png"]} + :responses {200 {:description "an image" + :content {"image/png" {:schema string?}}}} :handler (fn [_] {:status 200 :headers {"Content-Type" "image/png"}