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
field_name: The name of the field this validator is applied to, if any (deprecated)
2056
2056
schema: The schema to validate the output of the validator function
2057
2057
ref: optional unique identifier of the schema, used to reference the schema in other places
2058
2058
json_schema_input_schema: The core schema to be used to generate the corresponding JSON Schema input type
2059
2059
metadata: Any other information you want to include with the schema, not used by pydantic-core
2060
2060
serialization: Custom serialization schema
2061
2061
"""
2062
+
iffield_nameisnotNone:
2063
+
warnings.warn(
2064
+
'The `field_name` argument on `with_info_before_validator_function` is deprecated, it will be passed to the function through `ValidationState` instead.',
function: The validator function to call after the schema is validated
2153
2160
schema: The schema to validate before the validator function
2154
-
field_name: The name of the field this validators is applied to, if any
2161
+
field_name: The name of the field this validator is applied to, if any (deprecated)
2155
2162
ref: optional unique identifier of the schema, used to reference the schema in other places
2156
2163
metadata: Any other information you want to include with the schema, not used by pydantic-core
2157
2164
serialization: Custom serialization schema
2158
2165
"""
2166
+
iffield_nameisnotNone:
2167
+
warnings.warn(
2168
+
'The `field_name` argument on `with_info_after_validator_function` is deprecated, it will be passed to the function through `ValidationState` instead.',
schema: The schema to validate the output of the validator function
2290
-
field_name: The name of the field this validators is applied to, if any
2304
+
field_name: The name of the field this validator is applied to, if any (deprecated)
2291
2305
json_schema_input_schema: The core schema to be used to generate the corresponding JSON Schema input type
2292
2306
ref: optional unique identifier of the schema, used to reference the schema in other places
2293
2307
metadata: Any other information you want to include with the schema, not used by pydantic-core
2294
2308
serialization: Custom serialization schema
2295
2309
"""
2310
+
iffield_nameisnotNone:
2311
+
warnings.warn(
2312
+
'The `field_name` argument on `with_info_wrap_validator_function` is deprecated, it will be passed to the function through `ValidationState` instead.',
field_name: The name of the field this validators is applied to, if any
2403
+
field_name: The name of the field this validator is applied to, if any (deprecated)
2383
2404
ref: optional unique identifier of the schema, used to reference the schema in other places
2384
2405
json_schema_input_schema: The core schema to be used to generate the corresponding JSON Schema input type
2385
2406
metadata: Any other information you want to include with the schema, not used by pydantic-core
2386
2407
serialization: Custom serialization schema
2387
2408
"""
2409
+
iffield_nameisnotNone:
2410
+
warnings.warn(
2411
+
'The `field_name` argument on `with_info_plain_validator_function` is deprecated, it will be passed to the function through `ValidationState` instead.',
0 commit comments