Skip to content
New issue

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

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

GuySerfaty
Copy link

@GuySerfaty GuySerfaty commented May 14, 2020

Great boilerplate and thank you all,
I notice that there is no validation on the request body, I found this issue:
typestack/routing-controllers#384 (comment)

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

Guy Serfaty added 2 commits May 14, 2020 12:58
@theocerutti
Copy link

I tried it and it's working. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants