Skip to content

Commit 65223e4

Browse files
Update responseDescProducesResponseType.md (#35253)
1 parent 14f68fc commit 65223e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Response description on ProducesResponseType
1+
### Response description on ProducesResponseType for API controllers
22

33
The [ProducesAttribute](/dotnet/api/microsoft.aspnetcore.mvc.producesattribute-1), [ProducesResponseTypeAttribute](/dotnet/api/microsoft.aspnetcore.mvc.producesresponsetypeattribute-1), and [ProducesDefaultResponseType](/dotnet/api/microsoft.aspnetcore.mvc.producesdefaultresponsetypeattribute) attributes now accept an optional string parameter, `Description`, that will set the description of the response. Here's an example:
44

@@ -18,5 +18,6 @@ And the generated OpenAPI:
1818
"description": "The weather forecast for the next 5 days.",
1919
"content": {
2020
```
21+
[Minimal APIs](https://github.com/dotnet/aspnetcore/issues/58724) currently don't support `ProducesResponseType`.
2122
2223
[Community contribution](https://github.com/dotnet/aspnetcore/pull/58193) by [Sander ten Brinke](https://github.com/sander1095) 🙏

0 commit comments

Comments
 (0)