You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify that NSwag would support .NET's new Description property on [ProducesResponseType], [Produces], and [ProducesDefaultResponseType] Attributes
#4995
Open
sander1095 opened this issue
Oct 9, 2024
· 0 comments
I'm currently working on dotnet/aspnetcore#55656, which adds a Description property to the attributes mentioned in the title.
I had a quick look through NSwag's codebase to see if it would need any updates to get Description support. However, I believe this is not the case as NSwag grabs all the attributes and looks for Description properties on them. Currently, this would not match with ProducesResponseType, but when the mentioned issue's PR gets merged and released (probably in .NET 10), it will automagically work.
I'm currently working on dotnet/aspnetcore#55656, which adds a
Description
property to the attributes mentioned in the title.I had a quick look through NSwag's codebase to see if it would need any updates to get Description support. However, I believe this is not the case as NSwag grabs all the attributes and looks for Description properties on them. Currently, this would not match with ProducesResponseType, but when the mentioned issue's PR gets merged and released (probably in .NET 10), it will automagically work.
NSwag/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs
Line 152 in 7d6df3a
The goal of this issue is to verify that this is the case.
The text was updated successfully, but these errors were encountered: