Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@sander1095
Copy link

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.

if (attributeType.GetRuntimeProperty("Description") != null)

The goal of this issue is to verify that this is the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant