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

Bugfix: z.record().parse should not filter out undefined values #3251

Merged

Commits on Feb 17, 2024

  1. Bugfix: z.record().parse should not filter out undefined values

    When calling .parse on z.record() we should not filter out undefined values.
    Add the optional 'alwaysSet' to the z.record pairs before passing them to mergeObject to
    maintain undefined values.
    
    This solves issue colinhacks#3197
    raik-casimiro committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    ed9d10b View commit details
    Browse the repository at this point in the history