How can I have compojure-api infer and send a content-type header with responses?
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 $ref
s depth?
@igrishaev I think this might be fixed in the latest swagger-uis. See https://github.com/swagger-api/swagger-ui/issues/3012
@jmckitrick could you give an example what you would like to see inferred?
@ikitommi I’m probably doing something wrong… but how do I make a JSON response infer that content type? Right now, it’s nil.