'body.content': { message: "'content' is required", value: undefined }
Opened this issue · 0 comments
viprocket1 commented
i was able to use the OpenAPI.json specs in my tool. and i was able to invoke the plugin chain on request. i keep getting this error tho on the plugin side.
Caught Validation Error for /files: {
'body.content': { message: "'content' is required", value: undefined }
} ValidateError
at getValidatedArgs (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:211:19)
at FileController_writeFile (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:110:33)
at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:114:3)
at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
at <anonymous> (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:284:15)
at Function.process_params (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:346:12)
at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:280:10)
at jsonParser (/home/runner/chatgpt-plugin-1/node_modules/body-parser/lib/types/json.js:119:7) {
fields: {
'body.content': { message: "'content' is required", value: undefined }
},
status: 400
}
PUT /files?env=Bash&path=%2Fe2b.txt 422 94 - 14.806 ms
Caught Validation Error for /files: {
'body.content': { message: "'content' is required", value: undefined }
} ValidateError
at getValidatedArgs (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:211:19)
at FileController_writeFile (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:110:33)
at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:114:3)
at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
at <anonymous> (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:284:15)
at Function.process_params (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:346:12)
at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:280:10)
at jsonParser (/home/runner/chatgpt-plugin-1/node_modules/body-parser/lib/types/json.js:119:7) {
fields: {
'body.content': { message: "'content' is required", value: undefined }
},
status: 400
}