The OpenAPI document serving endpoint serves up JSON data, but fails to set the Content-Type header. This does not impede the SwaggerUI, but it does mean that other tools (such as viewing the content directly in a browser) do not mark up the data as JSON.