Fork me on GitHub
#ring-swagger
<
2017-01-29
>
metametadata18:01:47

Hi! In Swagger UI generated by compojure-api is there any way to set default "Response Content Type" to something other than "application/json" and ideally remove the unneeded options (e.g. x-yaml)? I've tried editing the :formats but they don't have the effect on Swagger UI:

(-> muuntaja/default-options
      (update :formats dissoc "application/json")
      (assoc :default-format "application/transit+json")
...

juhoteperi18:01:29

Which compojure-api version are you using?

juhoteperi18:01:11

Oh, right, 1.2 as you are using muuntaja

metametadata18:01:23

yep, the latest alpha

ikitommi20:01:05

@metametadata that should do it, I'll run the code tomorrow and see myself. There is no explicit way currently to set the default format for swagger, but the formats map is small and should be a arraymap and as implementation detail - in order.