Skip to content

fix: don't mutate input data#4

Merged
paulRbr merged 1 commit into
bump-sh:mainfrom
paulRbr:dont-modify-input-data
Feb 25, 2026
Merged

fix: don't mutate input data#4
paulRbr merged 1 commit into
bump-sh:mainfrom
paulRbr:dont-modify-input-data

Conversation

@paulRbr

@paulRbr paulRbr commented Feb 25, 2026

Copy link
Copy Markdown
Member

Not sure why we had the insert_property_defaults configuration while
using JSON schemer schema validator. But this can mutate the input
data in case the target schema to validate has defaults. (cf
https://github.com/davishmcclurg/json_schemer/blob/7f1b816c7d240ff1762c2f4c761668bef754bad6/README.md?plain=1#L202-L206).

Not sure why we had the `insert_property_defaults` configuration while
using JSON schemer schema validator. But this can mutate the input
data in case the target schema to validate has defaults. (cf
https://github.com/davishmcclurg/json_schemer/blob/7f1b816c7d240ff1762c2f4c761668bef754bad6/README.md?plain=1#L202-L206).

@scharrier scharrier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

@paulRbr paulRbr merged commit c0819fa into bump-sh:main Feb 25, 2026
2 checks passed
@paulRbr paulRbr deleted the dont-modify-input-data branch February 25, 2026 09:51
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