mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
f05bdb732f
* fix: check only first sublevel for validators with `each_item` When using a validator with `each_item`, the items are all validated one by one. But if the items are also iterable the subitems would then be validated because the validator would be kept as it is. Now the validator passed to the items is changed and won't be propagated closes #1933 * chore: add breaking change
194 B
194 B
Breaking Change: always validate only first sublevel items with each_item.
There were indeed some edge cases with some compound types where the validated items were the last sublevel ones.