swagger Unable to render this definition

swagger Unable to render this definition

Unable to render this definition

The provided definition does not specify a valid version field.

Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).

 

可能的原因:

api中的Controller/Action 请加入[HttpPost]或者 [HTTPGet]

 

posted on 2019-09-16 10:29  NET未来之路 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lonelyxmas/p/11525988.html

你可能感兴趣的:(swagger Unable to render this definition)