Skip to content
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

Updates swagger-ui submodule to v3.20.9 #1304

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Swashbuckle.Core/Application/SwaggerUiConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public SwaggerUiConfig(IEnumerable<string> discoveryPaths, Func<HttpRequestMessa
CustomAsset("index", thisAssembly, "Swashbuckle.SwaggerUi.CustomAssets.index.html", isTemplate: true);
CustomAsset("css/screen-css", thisAssembly, "Swashbuckle.SwaggerUi.CustomAssets.screen.css");
CustomAsset("css/typography-css", thisAssembly, "Swashbuckle.SwaggerUi.CustomAssets.typography.css");

// Map route-path for logos to the embedded png's
CustomAsset("images/favicon-32x32-png", thisAssembly, "favicon-32x32.png");
CustomAsset("images/favicon-16x16-png", thisAssembly, "favicon-16x16.png");
}

public void InjectStylesheet(Assembly resourceAssembly, string resourceName, string media = "screen", bool isTemplate = false)
Expand Down
3 changes: 2 additions & 1 deletion Swashbuckle.Tests/SwaggerUi/SwaggerUiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ public void It_exposes_config_for_apiKey_name_and_location()
StringAssert.Contains("apiKeyIn: 'header'", content);
}

[TestCase("http://tempuri.org/swagger/ui/images/logo_small-png", "image/png")]
[TestCase("http://tempuri.org/swagger/ui/images/favicon-32x32-png", "image/png")]
[TestCase("http://tempuri.org/swagger/ui/images/favicon-16x16-png", "image/png")]
[TestCase("http://tempuri.org/swagger/ui/css/typography-css", "text/css")]
public void It_returns_correct_asset_mime_type(string resourceUri, string expectedMimeType)
{
Expand Down
2 changes: 1 addition & 1 deletion swagger-ui
Submodule swagger-ui updated 588 files