Skip to content

Commit f0200ea

Browse files
Copilotcaptainsafia
andcommitted
Remove WithOpenApi call from project template as requested in review
Co-authored-by: captainsafia <[email protected]>
1 parent 2efc529 commit f0200ea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.MinimalAPIs.OrgOrIndividualB2CAuth.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#if (GenerateApi)
22
using System.Net.Http;
33
#endif
4-
#pragma warning disable ASPDEPR002 // WithOpenApi is deprecated
54
using Microsoft.AspNetCore.Authentication;
65
using Microsoft.AspNetCore.Authentication.JwtBearer;
76
#if (GenerateGraph)
@@ -129,7 +128,6 @@
129128
#if (EnableOpenAPI)
130129
})
131130
.WithName("GetWeatherForecast")
132-
.WithOpenApi()
133131
.RequireAuthorization();
134132
#else
135133
})

0 commit comments

Comments
 (0)