Skip to content

Commit

Permalink
React to review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
captainsafia committed May 9, 2024
1 parent 4572898 commit 9b0cb77
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void Main(string[] args)
builder.Services.AddControllers();
#endif
#if (EnableOpenAPI)
// Learn more about configuring OpenAPI at https://aka.ms/aspnetcore/openapi
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
#endif
#if (WindowsAuth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
builder.Services.AddAuthorization();

#if (EnableOpenAPI)
// Learn more about configuring OpenAPI at https://aka.ms/aspnetcore/openapi
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// Add services to the container.
#if (EnableOpenAPI)
// Learn more about configuring OpenAPI at https://aka.ms/aspnetcore/openapi
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
#endif
#if (WindowsAuth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

builder.Services.AddControllers();
#if (EnableOpenAPI)
// Learn more about configuring OpenAPI at https://aka.ms/aspnetcore/openapi
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
#endif
#if (WindowsAuth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ private async Task WebApiTemplateCore(string languageOverride, string[] args = n
ErrorMessages.GetFailedProcessMessageOrEmpty("Run published project", project, aspNetProcess.Process));

await aspNetProcess.AssertOk("weatherforecast");
// OpenAPI endpoint is only enabled in Development
await aspNetProcess.AssertNotFound("openapi/v1.json");
await aspNetProcess.AssertNotFound("/");
}
}
Expand Down

0 comments on commit 9b0cb77

Please sign in to comment.