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

Add support for System.Web.Mvc.AcceptVerbsAttribute to WebApiOpenApiDocumentGenerator #4104

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

andreasbalzer
Copy link
Contributor

I noticed System.Web.Mvc.AcceptVerbsAttribute leads to an exception in WebApiOpenApiDocumentGenerator when determining HttpMethods. In case NSwag wants to support this, I would like to suggest this change. Please let me know if there are any improvements I can make or whether this is something you would not like to pursue.

Adds support for System.Web.Mvc.AcceptVerbsAttribute to WebApiOpenApiDocumentGenerator

#4103
WebApiOpenApiDocumentGenerator throws when encountering AcceptVerbsAttribute on projects using System.Web.Mvc.

httpMethods = acceptVerbsAttribute.HttpMethods is ICollection
System.Web.Mvc uses AcceptVerbsAttribute.Verbs-property instead of AcceptVerbsAttribute.HttpMethods-property used by ASP.NET Core.

@RicoSuter RicoSuter merged commit 3d6b66c into RicoSuter:master Aug 15, 2022
lahma pushed a commit to lahma/NSwag that referenced this pull request Dec 25, 2022
…ocumentGenerator (RicoSuter#4104)

* Add support for System.Web.Mvc AcceptVerbsAttribute

* Add RouteTests for System.Web.Mvc AcceptVerbs
lahma pushed a commit to lahma/NSwag that referenced this pull request Jan 20, 2024
…ocumentGenerator (RicoSuter#4104)

* Add support for System.Web.Mvc AcceptVerbsAttribute

* Add RouteTests for System.Web.Mvc AcceptVerbs
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

Successfully merging this pull request may close these issues.

None yet

2 participants