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

Fix! Type Sanitizer #521

Closed
wants to merge 1 commit into from
Closed

Fix! Type Sanitizer #521

wants to merge 1 commit into from

Conversation

Klemele
Copy link

@Klemele Klemele commented Feb 12, 2018

Howdy guys,

Seems to be an issue with the last release and the typing from 'Sanitizer'.
This quick 'revert' seems to fix it ;).

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4a2d71d on Klemele:bugfix-master-type-sanitizer into df3f006 on ctavan:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4a2d71d on Klemele:bugfix-master-type-sanitizer into df3f006 on ctavan:master.

Copy link
Member

@gustavohenke gustavohenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for finding this out @Klemele!

We can't go that simple unfortunately as one defining custom sanitizers will mess with the interfaces of the filter API:
https://github.com/ctavan/express-validator/blob/df3f0067140e2d87b5f2c2e0a36db99f799904e1/test/type-definition.spec.ts#L13-L15

Also, can you please write a simple test here?
https://github.com/ctavan/express-validator/blob/df3f0067140e2d87b5f2c2e0a36db99f799904e1/test/type-definition.spec.ts#L42

@gustavohenke
Copy link
Member

gustavohenke commented Feb 26, 2018

Fixed it myself :) v5.0.2 has it.

@lock
Copy link

lock bot commented May 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants