Description
Suave web applications can be used with AspNetCore but native Suave WebSockets are not available and this breaks web part delivering Swagger UI.
Workaround
Swagger UI can be served as static files:
let swaggerFileOptions =
StaticFileOptions(
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @"swagger")),
RequestPath = PathString("/swagger/v3/ui"))
...
appBuilder
.UseStaticFiles(swaggerFileOptions)
.UseSuave(suaveApp)
Description
Suave web applications can be used with AspNetCore but native Suave WebSockets are not available and this breaks web part delivering Swagger UI.
Workaround
Swagger UI can be served as static files: