Swagger setting pretty print enabled


Regarding the resent implementation of custom-params in XDataServer.SwaggerUIOptions I would like to know if I can ommit this line in my code to enable pretty format of the returned JSON data.

TXDataOperationContext.Current.Response.Headers.SetValue('content-type', 'application/json');

With reference to previous support case!

I don't think so, since you return a TStream in your XData service operation method, you still need to tell what is the content-type of the response, there is no way it can guess it.