Commits
Click on a commit to change the comparison rangeFix false deprecation warnings for parameters in TextAttributeSchema
When loading schemas with min_length, max_length, or regex correctly
defined in the parameters block, the system was incorrectly generating
deprecation warnings. This happened because reconcile_parameters syncs
values between top-level and parameters fields, making it impossible
to distinguish the original source.
The fix:
- Track deprecated field usage in _deprecated_fields_used set during
reconcile_parameters when values are synced FROM top-level TO parameters
- Update gather_warnings to check this set instead of comparing field values
- Add tests to verify no warnings when using parameters correctly
Fixes #799514 hours ago
by FragmentedPacket Use PrivateAttr for mutable default and add type annotation
- Replace mutable class-level set() with PrivateAttr(default_factory=set)
to ensure each instance gets its own set
- Add type annotation for deprecated_fields to satisfy mypy
- Sort deprecated fields for consistent warning order14 hours ago
by FragmentedPacket