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.
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.