Skip to content

fix for stripUnknown not working for nested object on invalid object#2518

Merged
hueniverse merged 1 commit intohapijs:masterfrom
aperwenis:fix-stripUnknown-for-nested-objects
Feb 8, 2021
Merged

fix for stripUnknown not working for nested object on invalid object#2518
hueniverse merged 1 commit intohapijs:masterfrom
aperwenis:fix-stripUnknown-for-nested-objects

Conversation

@aperwenis
Copy link
Contributor

@aperwenis aperwenis commented Nov 26, 2020

Fixes #2479
Fixes #2459

@Unibozu
Copy link

Unibozu commented Jan 20, 2021

Hey

Just wanted to say I am also blocked by this issue on a project that is supposed to be released in a few days (we've fixed it with a hefty amount of JS to re-structure the objects but it would be amazing to get Joi to do it for us since it's fully aware of the schema).

This PR has been waiting for a while and seems to be fixing two issues, is it possible to review it? perhaps have I missed something that may block merging it?

Thanks everyone

@hueniverse hueniverse self-assigned this Feb 8, 2021
@hueniverse hueniverse added the bug Bug or defect label Feb 8, 2021
@hueniverse hueniverse added this to the 17.4.0 milestone Feb 8, 2021
@hueniverse hueniverse merged commit 8a6349c into hapijs:master Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistency with stripUnknown: true and failing validation rules stripUnknown doesn't work for nested objects

3 participants