This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-27
Channels
- # beginners (34)
- # boot (15)
- # cider (7)
- # cljs-dev (7)
- # cljsjs (2)
- # cljsrn (46)
- # clojure (130)
- # clojure-argentina (1)
- # clojure-colombia (2)
- # clojure-greece (1)
- # clojure-italy (53)
- # clojure-losangeles (1)
- # clojure-russia (15)
- # clojure-spec (8)
- # clojure-uk (100)
- # clojurescript (117)
- # core-matrix (1)
- # cursive (24)
- # datomic (41)
- # duct (1)
- # emacs (11)
- # fulcro (22)
- # graphql (4)
- # hoplon (3)
- # jobs (1)
- # lein-figwheel (3)
- # luminus (18)
- # lumo (52)
- # off-topic (57)
- # pedestal (2)
- # planck (12)
- # re-frame (22)
- # remote-jobs (1)
- # ring-swagger (6)
- # rum (7)
- # shadow-cljs (13)
- # yada (19)
I'm using plumatic/schema with compojure-api to define return types in Swagger UI. Is there a way to specify a return type of image/jpeg
?
@daveliepmann type java.io.File
maps to swagger "file"
. Would that help?
@ikitommi it may; I'll try to schema-ify that
The changelog for [ring-swagger 0.23.0](https://github.com/metosin/ring-swagger/blob/725fc8cf77cb5721bc181ffbea0ba2f0e8319f14/CHANGELOG.md#0230-10220170 says Support for java.io.File return type, mapping to "file"
— should this mean that literally :return "file"
should work in my route?
@daveliepmann The correct way to set that is :return java.io.File
, or :responses {200 {:schema java.io.File}}
this is helpful—I am encountering some version issues but I think this is the right path. Thanks.