express-typescript-boilerplate
express-typescript-boilerplate copied to clipboard
There is no validation for request body in development env - Upgrade class-validator,class-validator-jsonschema,routing-controllers
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
I tried it and it's working. thanks