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
2159
schema: The schema to validate before the validator function
2154
-
field_name: The name of the field this validators is applied to, if any
2160
+
field_name: The name of the field this validator is applied to, if any (deprecated)
2155
2161
ref: optional unique identifier of the schema, used to reference the schema in other places
2156
2162
metadata: Any other information you want to include with the schema, not used by pydantic-core
2157
2163
serialization: Custom serialization schema
2158
2164
"""
2165
+
iffield_nameisnotNone:
2166
+
warnings.warn(
2167
+
'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
2302
+
field_name: The name of the field this validator is applied to, if any (deprecated)
2291
2303
json_schema_input_schema: The core schema to be used to generate the corresponding JSON Schema input type
2292
2304
ref: optional unique identifier of the schema, used to reference the schema in other places
2293
2305
metadata: Any other information you want to include with the schema, not used by pydantic-core
2294
2306
serialization: Custom serialization schema
2295
2307
"""
2308
+
iffield_nameisnotNone:
2309
+
warnings.warn(
2310
+
'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
2400
+
field_name: The name of the field this validator is applied to, if any (deprecated)
2383
2401
ref: optional unique identifier of the schema, used to reference the schema in other places
2384
2402
json_schema_input_schema: The core schema to be used to generate the corresponding JSON Schema input type
2385
2403
metadata: Any other information you want to include with the schema, not used by pydantic-core
2386
2404
serialization: Custom serialization schema
2387
2405
"""
2406
+
iffield_nameisnotNone:
2407
+
warnings.warn(
2408
+
'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