Swagger UI freezes after API fetch and browser crashes

后端 未结 5 878
臣服心动
臣服心动 2021-01-12 20:41

I have an ASP.NET WebAPI project where I am attempting to replace our old XmlDocumentationProvider page with Swagger UI. I am using the swashbuckle swagger for webAPI 5.3.1

5条回答
  •  渐次进展
    2021-01-12 21:02

    I had the same issue. Finally I could leave my [ResponseType()] as is with an ORM entity as I wanted to, but I managed to make swagger not freeze by adding another model in [SwaggerResponse()]

    Here is more info in that: https://mattfrear.com/2015/04/21/generating-swagger-example-responses-with-swashbuckle/

提交回复
热议问题