Microsoft.OpenApi.Models.OpenApiDocument.SerializeAsV2 Invalid URI: The format of the URI could not be determined
问题 I am upgrading my api from .netcore2.1 to 3.1 The api uses SwagerUI and Autorest to generate the client. From this question about Autorest I found out that I need to use app.UseSwagger(c => { c.SerializeAsV2 = true; }); However the UI gives Fetch error Internal Server Error v1/swagger.json The json is { "StatusCode": 500, "ErrorMessage": "Internal server error: Invalid URI: The format of the URI could not be determined. nStack: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind