Skip to content

Allow SwaggerUiIndexMiddleware to work with ReDocSettings #5122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow SwaggerUiIndexMiddleware to work with ReDocSettings
miloszkukla authored Mar 19, 2025
commit d391f541d4a5b4e2295f63bbf0d73d2fdb3fed00
6 changes: 3 additions & 3 deletions src/NSwag.AspNet.Owin/Middlewares/SwaggerUiIndexMiddleware.cs
Original file line number Diff line number Diff line change
@@ -7,10 +7,10 @@ internal sealed class SwaggerUiIndexMiddleware<T> : OwinMiddleware
where T : OpenApiDocumentGeneratorSettings, new()
{
private readonly string _indexPath;
private readonly SwaggerUiSettings<T> _settings;
private readonly SwaggerUiSettingsBase<T> _settings;
private readonly string _resourcePath;

public SwaggerUiIndexMiddleware(OwinMiddleware next, string indexPath, SwaggerUiSettings<T> settings, string resourcePath)
public SwaggerUiIndexMiddleware(OwinMiddleware next, string indexPath, SwaggerUiSettingsBase<T> settings, string resourcePath)
: base(next)
{
_indexPath = indexPath;
@@ -34,4 +34,4 @@ public override async Task Invoke(IOwinContext context)
}
}
}
}
}