Fork me on GitHub
#ring-swagger
<
2018-04-04
>
jmckitrick12:04:30

How can I have compojure-api infer and send a content-type header with responses?

igrishaev13:04:43

Did anybody face the following issue? I’ve got lots of json schemas in Swagger, some of them are even recursive. When rendering the UI, swagger fires an exception RangeError: Maximum call stack size exceeded. How can I limit $refs depth?

ikitommi19:04:53

@igrishaev I think this might be fixed in the latest swagger-uis. See https://github.com/swagger-api/swagger-ui/issues/3012

ikitommi19:04:28

@jmckitrick could you give an example what you would like to see inferred?

jmckitrick20:04:42

@ikitommi I’m probably doing something wrong… but how do I make a JSON response infer that content type? Right now, it’s nil.