Skip to content

fix: Shallow copy input dict in _empty_field_to_none validator#28

Merged
msto merged 1 commit intomainfrom
ms/shallow-copy-validator
Mar 13, 2026
Merged

fix: Shallow copy input dict in _empty_field_to_none validator#28
msto merged 1 commit intomainfrom
ms/shallow-copy-validator

Conversation

@msto
Copy link
Copy Markdown
Collaborator

@msto msto commented Mar 7, 2026

Avoid mutating the caller's dict by making a shallow copy before modifying empty Optional fields.

@clintval clintval assigned msto and unassigned clintval Mar 9, 2026
Avoid mutating the caller's dict by making a shallow copy before
modifying empty Optional fields.

Co-Authored-By: Rahul Kaushal <kaushalrahul15@gmail.com>
@msto msto force-pushed the ms/shallow-copy-validator branch from db134d6 to 7a9b25f Compare March 13, 2026 18:08
@msto msto merged commit e8b1e0f into main Mar 13, 2026
2 checks passed
@msto msto deleted the ms/shallow-copy-validator branch March 13, 2026 18:09
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

Successfully merging this pull request may close these issues.

2 participants