Friday, May 4, 2018

Anyway to circumvent annoying Swagger Constraints?

I have a controller with two [HttpGet]s and swagger does not allow verbs and path overloading. Some fucker put in an if condition in the code to throw a NotSupportedException for it.

I could merge the two Actions but I will lose attribute based validation and to rely on controller validation. This is making me incredibly furious. Is there anyway that I can bypass this annoying constraint? Did I miss something in my fit of rage?

Anyway to circumvent annoying Swagger Constraints? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team