Skip to content

Commit

Permalink
doc: add openapi response content type to examples/ring-spec-swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
opqdonut committed Aug 28, 2023
1 parent e4c75c7 commit 55854f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/ring-spec-swagger/src/example/server.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit 55854f6

Please sign in to comment.