You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Since { key1: 'a', key2: undefined } is not the same as { key1: 'a' }, I expect cast called with { stripUnknown: true } to remove unknown keys regardless of their value. At the very list if strict(true) is set.
Platform (please complete the following information):
Browser [e.g. chrome, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Cast called with stripUnknown doesn't strip keys with value undefined. Not even with .strict(true) set.
To Reproduce
Reproducible example
Expected behavior
Since
{ key1: 'a', key2: undefined }
is not the same as{ key1: 'a' }
, I expect cast called with { stripUnknown: true } to remove unknown keys regardless of their value. At the very list if strict(true) is set.Platform (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: