From 9131ecf537f7d4aa95407403e75404093c59bbc7 Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Mon, 17 Oct 2022 08:16:36 -0700 Subject: [PATCH] Update openapi.md (#27299) * Update openapi.md * React to more user feedback --- .../minimal-apis/7.0-samples/WebMinOpenApi/projectFile.xml | 2 +- aspnetcore/fundamentals/minimal-apis/openapi.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinOpenApi/projectFile.xml b/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinOpenApi/projectFile.xml index 89b323a77f..f7a5ee0acd 100644 --- a/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinOpenApi/projectFile.xml +++ b/aspnetcore/fundamentals/minimal-apis/7.0-samples/WebMinOpenApi/projectFile.xml @@ -8,7 +8,7 @@ - + diff --git a/aspnetcore/fundamentals/minimal-apis/openapi.md b/aspnetcore/fundamentals/minimal-apis/openapi.md index fefa2a542d..d745fc05ce 100644 --- a/aspnetcore/fundamentals/minimal-apis/openapi.md +++ b/aspnetcore/fundamentals/minimal-apis/openapi.md @@ -75,7 +75,7 @@ ASP.NET Core provides the [`Microsoft.AspNetCore.OpenApi`](https://www.nuget.org [!code-xml[](7.0-samples/WebMinOpenApi/projectFile.xml?highlight=10)] -When using [`Swashbuckle.AspNetCore`](https://www.nuget.org/packages/Swashbuckle.AspNetCore/) with `Microsoft.AspNetCore.OpenApi`, `Swashbuckle.AspNetCore` 6.3.1 and later must be used. Version 6.4.0 or later is required if you want to [provide endpoint summary or description text](#add-endpoint-summary-or-description). +When using [`Swashbuckle.AspNetCore`](https://www.nuget.org/packages/Swashbuckle.AspNetCore/) with `Microsoft.AspNetCore.OpenApi`, `Swashbuckle.AspNetCore` 6.4.0 or later must be used. [`Microsoft.OpenApi`](https://www.nuget.org/packages/Microsoft.OpenApi/) 1.4.3 or later must be used to leverage copy constructors in `WithOpenApi` invocations. ## Add OpenAPI annotations to endpoints via `WithOpenApi`