From 6cbb6f2643fb04ec2e8dd6f5d854effdf4eb8c05 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Sat, 24 Dec 2022 10:40:34 +0000 Subject: [PATCH] Update advanced-features.md --- docs/bonus/advanced-features.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/bonus/advanced-features.md b/docs/bonus/advanced-features.md index d1fc2848..df98825e 100644 --- a/docs/bonus/advanced-features.md +++ b/docs/bonus/advanced-features.md @@ -67,15 +67,17 @@ In ASP.NET Core 2.2 or later, there are API analyzers that reflect over controll To use it, your project must enable the OpenAPI Analyzers: -1. In the `Northwind.WebApi` project file, add the element that enables the OpenAPI Analyzers, as shown highlighted in the following markup: +1. In the `Northwind.WebApi` project file, add the element that enables the OpenAPI Analyzers to a project that targets the web SDK, as shown highlighted in the following markup: ```xml - - net7.0 - enable - enable - true - + + + + net6.0 + enable + enable + true + ``` 2. In `CustomersController.cs`, for the `Update` action method, comment out the three `[ProducesResponseType]` attributes, as shown highlighted in the following code: