Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit ea50616

Browse files
committed
Fix
1 parent c4145c3 commit ea50616

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/NET6CustomLibrary/Swagger/SwaggerOptions.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,4 @@ public static WebApplication AddUseSwaggerUI(this WebApplication app, string tit
1313

1414
return app;
1515
}
16-
17-
public static OpenApiInfo AddOptionalOpenApiInfo(this OpenApiInfo openApiInfo, string name, string email, string siteUrl,
18-
string nameLicense = "MIT License", string urlLicense = "https://opensource.org/licenses/MIT")
19-
{
20-
openApiInfo.Contact = new OpenApiContact
21-
{
22-
Name = $"{name}",
23-
Email = $"{email}",
24-
Url = new Uri($"{siteUrl}"),
25-
};
26-
27-
openApiInfo.License = new OpenApiLicense
28-
{
29-
Name = $"{nameLicense}",
30-
Url = new Uri($"{urlLicense}"),
31-
};
32-
33-
return openApiInfo;
34-
}
3516
}

0 commit comments

Comments
 (0)