ring-swagger & compojure-api
daveliepmann 2017-09-27T17:27:07.000495Z

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?

ikitommi 2017-09-27T17:37:09.000211Z

@daveliepmann type java.io.File maps to swagger "file". Would that help?

daveliepmann 2017-09-27T17:44:00.000110Z

@ikitommi it may; I'll try to schema-ify that

daveliepmann 2017-09-27T18:00:18.000141Z

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?

ikitommi 2017-09-27T18:05:45.000459Z

@daveliepmann The correct way to set that is :return java.io.File, or :responses {200 {:schema java.io.File}}

daveliepmann 2017-09-27T18:10:56.000136Z

this is helpful—I am encountering some version issues but I think this is the right path. Thanks.