Skip to content

Deprecate validate_properties_on_set=False#341

Merged
rwb27 merged 1 commit into
mainfrom
warn-if-validation-disabled
May 13, 2026
Merged

Deprecate validate_properties_on_set=False#341
rwb27 merged 1 commit into
mainfrom
warn-if-validation-disabled

Conversation

@rwb27
Copy link
Copy Markdown
Collaborator

@rwb27 rwb27 commented May 13, 2026

Previously, we raised a DeprecationWarning when this key wasn't specified. I've upgraded that to raise it if the key isn't true.

This is motivated by realising that validating properties on write is really the only sensible
option: they are already validated on read as a consequence of how they are serialized.

Previously, we raised a DeprecationWarning when this key wasn't specified. I've upgraded that to raise it if the key isn't true.
@barecheck
Copy link
Copy Markdown

barecheck Bot commented May 13, 2026

Barecheck - Code coverage report

Total: 96.86%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

Copy link
Copy Markdown
Contributor

@julianstirling julianstirling left a comment

Choose a reason for hiding this comment

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

This certainly is true for settings as if they are unvalidated then there are issues when they are written/read from json. I think this makes sense

@rwb27 rwb27 merged commit 1e14f45 into main May 13, 2026
15 of 16 checks passed
@rwb27 rwb27 deleted the warn-if-validation-disabled branch May 13, 2026 14:40
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