问题
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