express-typescript-boilerplate icon indicating copy to clipboard operation
express-typescript-boilerplate copied to clipboard

There is no validation for request body in development env - Upgrade class-validator,class-validator-jsonschema,routing-controllers

Open GuySerfaty opened this issue 4 years ago • 1 comments

Great boilerplate and thank you all, I notice that there is no validation on the request body, I found this issue: https://github.com/typestack/routing-controllers/issues/384#issuecomment-511850964

And after upgrading the validation works. I added an e2e test which proves and test it: before upgrade the test got "Error" - that comes because you try to add a user without password (DB level)

after "BadRequestError" returned with the right errors array (Entry point level)

<3

GuySerfaty avatar May 14 '20 10:05 GuySerfaty

I tried it and it's working. thanks

theocerutti avatar May 29 '21 14:05 theocerutti