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

sanitize() does not strip unknowns when using Joi schema validation #139

Closed
aroraenterprise opened this issue Dec 26, 2018 · 1 comment
Closed

Comments

@aroraenterprise
Copy link

Hey, I am sure I am probably doing something wrong but when I use the Joi schema to do validation, keys that are not in my schema but present in my data are not stripped in sanitize or during save. This means that basically anything present in the data is stored into the database. When i wasn't using joi for validation, sanitize/save would strip out these keys automatically. Love your help.

@sebelga
Copy link
Owner

sebelga commented Dec 29, 2018

Hi,
Thanks for reporting this, it was indeed a regression from a fix I added lately.
I just release v4.3.3 that should fix this issue. Let me know if it's working on your side.
Cheers!

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

No branches or pull requests

2 participants