@@ -95,7 +95,7 @@ def _validate(cls, __input_value: str, _: core_schema.ValidationInfo) -> Country
95
95
def __get_pydantic_core_schema__ (
96
96
cls , source : type [Any ], handler : GetCoreSchemaHandler
97
97
) -> core_schema .AfterValidatorFunctionSchema :
98
- return core_schema .general_after_validator_function (
98
+ return core_schema .with_info_after_validator_function (
99
99
cls ._validate ,
100
100
core_schema .str_schema (to_upper = True ),
101
101
)
@@ -158,7 +158,7 @@ def _validate(cls, __input_value: str, _: core_schema.ValidationInfo) -> Country
158
158
def __get_pydantic_core_schema__ (
159
159
cls , source : type [Any ], handler : GetCoreSchemaHandler
160
160
) -> core_schema .AfterValidatorFunctionSchema :
161
- return core_schema .general_after_validator_function (
161
+ return core_schema .with_info_after_validator_function (
162
162
cls ._validate ,
163
163
core_schema .str_schema (to_upper = True ),
164
164
serialization = core_schema .to_string_ser_schema (),
@@ -222,7 +222,7 @@ def _validate(cls, __input_value: str, _: core_schema.ValidationInfo) -> Country
222
222
def __get_pydantic_core_schema__ (
223
223
cls , source : type [Any ], handler : GetCoreSchemaHandler
224
224
) -> core_schema .AfterValidatorFunctionSchema :
225
- return core_schema .general_after_validator_function (
225
+ return core_schema .with_info_after_validator_function (
226
226
cls ._validate ,
227
227
core_schema .str_schema (to_upper = True ),
228
228
serialization = core_schema .to_string_ser_schema (),
@@ -285,7 +285,7 @@ def _validate(cls, __input_value: str, _: core_schema.ValidationInfo) -> Country
285
285
def __get_pydantic_core_schema__ (
286
286
cls , source : type [Any ], handler : GetCoreSchemaHandler
287
287
) -> core_schema .AfterValidatorFunctionSchema :
288
- return core_schema .general_after_validator_function (
288
+ return core_schema .with_info_after_validator_function (
289
289
cls ._validate ,
290
290
core_schema .str_schema (),
291
291
serialization = core_schema .to_string_ser_schema (),
@@ -340,7 +340,7 @@ def _validate(cls, __input_value: str, _: core_schema.ValidationInfo) -> Country
340
340
def __get_pydantic_core_schema__ (
341
341
cls , source : type [Any ], handler : GetCoreSchemaHandler
342
342
) -> core_schema .AfterValidatorFunctionSchema :
343
- return core_schema .general_after_validator_function (
343
+ return core_schema .with_info_after_validator_function (
344
344
cls ._validate ,
345
345
core_schema .str_schema (),
346
346
serialization = core_schema .to_string_ser_schema (),
0 commit comments