Skip to content

Undocumented (?) change to z.any() object property behavior in v4.4.0 #5997

@lynnntropy

Description

@lynnntropy

Since v4.4.0, object properties defined as z.any() are now treated as required (i.e. the object will fail to parse if the property is unset). The release notes say this is now the expected behavior for z.undefined(), but don't mention z.any(), so I assume this is unintended?

Reproduction: v4.3.6, v4.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions