We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On "inversify-express-utils": "^6.4.9",
"inversify-express-utils": "^6.4.9",
When I create a PUT endpoint without any parameters, like this:
@controller("/controller") export class TestController extends BaseHttpController { @httpPut("/test") async updateTest( @request() req: PutRequest<{ test: string }, void> ) { console.log(`Test: ${req.body.test}`); return this.ok({ message: "Endpoint returned" }); } }
it returns this error:
{ "messages": [ "\"value\" must be of type object" ] }
But, it I add any kind of parameter, like this:
@httpPut("/test/:test") async updateTest( @request() req: PutRequest<{ test: string }, { test: string}> ) { console.log(`Test: ${req.body.test}`); return this.ok({ message: "Endpoint returned" }); }
It works correctly. Looks like httpPut() assumes that some parameter will be passed, and fails otherwise.
httpPut()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On
"inversify-express-utils": "^6.4.9",
When I create a PUT endpoint without any parameters, like this:
it returns this error:
But, it I add any kind of parameter, like this:
It works correctly.
Looks like
httpPut()
assumes that some parameter will be passed, and fails otherwise.The text was updated successfully, but these errors were encountered: