Skip to content

Commit e2a03d4

Browse files
Update aspnetcore/release-notes/aspnetcore-10/includes/OpenApiPopulateXMLDocComments.md
Co-authored-by: Mike Kistler <[email protected]>
1 parent f310c2f commit e2a03d4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

aspnetcore/release-notes/aspnetcore-10/includes/OpenApiPopulateXMLDocComments.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ ASP.NET Core OpenAPI document generation will now include metadata from XML doc
1010

1111
At build-time, the OpenAPI package will leverage a source generator to discover XML comments in the current application assembly and any project references and emit source code to insert them into the document via an OpenAPI document transformer.
1212

13-
Support for generating OpenAPI metadata from XML documentation comments has been extended with ASP.NET Core in .NET 10 to extract metadata for operation responses from `<returns>` and `<response>` XML tags.
14-
1513
Note that the C# build process does not capture XML doc comments placed on lambda expresions, so to use XML doc comments to add metadata to a minimal API endpoint, you must define the endpoint handler as a method, put the XML doc comments on the method, and then reference that method from the `MapXXX` method. For example, to use XML doc comments to add metadata to a minimal API endpoint originally defined as a lambda expression:
1614

1715
```csharp

0 commit comments

Comments
 (0)