@@ -1551,6 +1551,7 @@ class TupleSchema(TypedDict, total=False):
1551
1551
variadic_item_index : int
1552
1552
min_length : int
1553
1553
max_length : int
1554
+ fail_fast : bool
1554
1555
strict : bool
1555
1556
ref : str
1556
1557
metadata : Any
@@ -1563,6 +1564,7 @@ def tuple_schema(
1563
1564
variadic_item_index : int | None = None ,
1564
1565
min_length : int | None = None ,
1565
1566
max_length : int | None = None ,
1567
+ fail_fast : bool | None = None ,
1566
1568
strict : bool | None = None ,
1567
1569
ref : str | None = None ,
1568
1570
metadata : Any = None ,
@@ -1587,6 +1589,7 @@ def tuple_schema(
1587
1589
variadic_item_index: The index of the schema in `items_schema` to be treated as variadic (following PEP 646)
1588
1590
min_length: The value must be a tuple with at least this many items
1589
1591
max_length: The value must be a tuple with at most this many items
1592
+ fail_fast: Stop validation on the first error
1590
1593
strict: The value must be a tuple with exactly this many items
1591
1594
ref: Optional unique identifier of the schema, used to reference the schema in other places
1592
1595
metadata: Any other information you want to include with the schema, not used by pydantic-core
@@ -1598,6 +1601,7 @@ def tuple_schema(
1598
1601
variadic_item_index = variadic_item_index ,
1599
1602
min_length = min_length ,
1600
1603
max_length = max_length ,
1604
+ fail_fast = fail_fast ,
1601
1605
strict = strict ,
1602
1606
ref = ref ,
1603
1607
metadata = metadata ,
@@ -1610,6 +1614,7 @@ class SetSchema(TypedDict, total=False):
1610
1614
items_schema : CoreSchema
1611
1615
min_length : int
1612
1616
max_length : int
1617
+ fail_fast : bool
1613
1618
strict : bool
1614
1619
ref : str
1615
1620
metadata : Any
@@ -1621,6 +1626,7 @@ def set_schema(
1621
1626
* ,
1622
1627
min_length : int | None = None ,
1623
1628
max_length : int | None = None ,
1629
+ fail_fast : bool | None = None ,
1624
1630
strict : bool | None = None ,
1625
1631
ref : str | None = None ,
1626
1632
metadata : Any = None ,
@@ -1643,6 +1649,7 @@ def set_schema(
1643
1649
items_schema: The value must be a set with items that match this schema
1644
1650
min_length: The value must be a set with at least this many items
1645
1651
max_length: The value must be a set with at most this many items
1652
+ fail_fast: Stop validation on the first error
1646
1653
strict: The value must be a set with exactly this many items
1647
1654
ref: optional unique identifier of the schema, used to reference the schema in other places
1648
1655
metadata: Any other information you want to include with the schema, not used by pydantic-core
@@ -1653,6 +1660,7 @@ def set_schema(
1653
1660
items_schema = items_schema ,
1654
1661
min_length = min_length ,
1655
1662
max_length = max_length ,
1663
+ fail_fast = fail_fast ,
1656
1664
strict = strict ,
1657
1665
ref = ref ,
1658
1666
metadata = metadata ,
@@ -1665,6 +1673,7 @@ class FrozenSetSchema(TypedDict, total=False):
1665
1673
items_schema : CoreSchema
1666
1674
min_length : int
1667
1675
max_length : int
1676
+ fail_fast : bool
1668
1677
strict : bool
1669
1678
ref : str
1670
1679
metadata : Any
@@ -1676,6 +1685,7 @@ def frozenset_schema(
1676
1685
* ,
1677
1686
min_length : int | None = None ,
1678
1687
max_length : int | None = None ,
1688
+ fail_fast : bool | None = None ,
1679
1689
strict : bool | None = None ,
1680
1690
ref : str | None = None ,
1681
1691
metadata : Any = None ,
@@ -1698,6 +1708,7 @@ def frozenset_schema(
1698
1708
items_schema: The value must be a frozenset with items that match this schema
1699
1709
min_length: The value must be a frozenset with at least this many items
1700
1710
max_length: The value must be a frozenset with at most this many items
1711
+ fail_fast: Stop validation on the first error
1701
1712
strict: The value must be a frozenset with exactly this many items
1702
1713
ref: optional unique identifier of the schema, used to reference the schema in other places
1703
1714
metadata: Any other information you want to include with the schema, not used by pydantic-core
@@ -1708,6 +1719,7 @@ def frozenset_schema(
1708
1719
items_schema = items_schema ,
1709
1720
min_length = min_length ,
1710
1721
max_length = max_length ,
1722
+ fail_fast = fail_fast ,
1711
1723
strict = strict ,
1712
1724
ref = ref ,
1713
1725
metadata = metadata ,
0 commit comments