You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/pydantic_core/core_schema.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,8 @@ class CoreConfig(TypedDict, total=False):
72
72
regex_engine: The regex engine to use for regex pattern validation. Default is 'rust-regex'. See `StringSchema`.
73
73
cache_strings: Whether to cache strings. Default is `True`, `True` or `'all'` is required to cache strings
74
74
during general validation since validators don't know if they're in a key or a value.
75
-
validate_by_alias: Whether to validate by alias. Default is `True`.
76
-
validate_by_name: Whether to validate by attribute name. Default is `False`. Replacement for `populate_by_name`.
75
+
validate_by_alias: Whether to use the field's alias when validating against the provided input data. Default is `True`.
76
+
validate_by_name: Whether to use the field's name when validating against the provided input data. Default is `False`. Replacement for `populate_by_name`.
77
77
serialize_by_alias: Whether to serialize by alias. Default is `False`, expected to change to `True` in V3.
0 commit comments