swagger生成錯誤問題 彙總解決

Unable to render this definition

The provided definition does not specify a valid version field.api

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).ide

解決方法:post

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

傳遞參數模型存在問題.spa

 

 
相關文章
相關標籤/搜索