简体   繁体   English

Swagger UI上的错误链接

[英]Error Link on Swagger UI

My SwaggerUI works like a charm, but why I'm getting an additional Error section on the page? 我的SwaggerUI就像一个吊饰一样工作,但是为什么我在页面上看到一个附加的Error部分? Not able to find out the exact source of it ie why it is coming. 无法找到它的确切来源,即为什么要来。

I got the issue with my SwaggerUI. 我的SwaggerUI遇到了问题。 I had implemented an ErrorController to override the way WebApi handles bad request. 我实现了一个ErrorController来覆盖WebApi处理错误请求的方式。 It was this controller which was appearing in the API documentation. API文档中出现的就是该控制器。 I hided this controller from the the API documentation using IngnoreApi attribute. 我使用IngnoreApi属性从API文档中隐藏了该控制器。 More details here https://github.com/domaindrivendev/Swashbuckle/issues/90 更多详细信息请参见https://github.com/domaindrivendev/Swashbuckle/issues/90

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM