Swagger error :Response validation failed: void does not allow a value

倾然丶 夕夏残阳落幕 提交于 2019-12-23 08:48:47

问题


I'm just following egghead Build Node.js APIs with OpenAPI Spec (Swagger) tutorial. I wrote a function to save data as in tutorial but when I'm trying to save data, I've got

Build Node.js APIs with OpenAPI Spec (Swagger)

{
  "message": "Response validation failed: void does not allow a  value",
  "code": "INVALID_TYPE",
  "failedValidation": true,
  "path": [
  "paths",
  "/",
  "post",
  "responses",
  "200"
  ],
 "originalResponse": "{}"
}

I'm new to this ,so please can anyone help me with this

来源:https://stackoverflow.com/questions/41217077/swagger-error-response-validation-failed-void-does-not-allow-a-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!