79214366

Date: 2024-11-22 09:31:27
Score: 1.5
Natty:
Report link

A solution for Scalar is to empty the server list:

app.MapScalarApiReference(options =>
{
    options.Servers = [];
});

Credit to: https://github.com/dotnet/aspnetcore/issues/57332#issuecomment-2479286855

I am uncertain how to do this for Swagger with OpenAPI.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: HenrikP