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

Payload validation: @Boolean decorator from class-validator seems to accept strings as true #18

Closed
maxmousse opened this issue Mar 15, 2021 · 1 comment
Labels
status: duplicate This issue or pull request already exists

Comments

@maxmousse
Copy link
Contributor

Describe the bug
@Boolean decorator from class-validator seems to accept strings as true

To Reproduce
Run the e2e tests and the ● Create a user (e2e) › Payload validation › should not accept payload with invalid banned must break.

Expected behavior
Non boolean values must not pass the payload validation

@maxmousse maxmousse added the status: duplicate This issue or pull request already exists label Apr 16, 2021
@maxmousse
Copy link
Contributor Author

Duplicate of #29

@maxmousse maxmousse marked this as a duplicate of #29 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant