@@ -261,7 +261,7 @@ def simple_ser_schema(type: ExpectedSerializationTypes) -> SimpleSerSchema:
261261
262262
263263class PlainSerializerFunctionSerSchema (TypedDict , total = False ):
264- type : Required [Literal ['function-plain' ]]
264+ type : Required [Literal ['serializer- function-plain' ]]
265265 function : Required [SerializerFunction ]
266266 is_field_serializer : bool # default False
267267 info_arg : bool # default False
@@ -292,7 +292,7 @@ def plain_serializer_function_ser_schema(
292292 # just to avoid extra elements in schema, and to use the actual default defined in rust
293293 when_used = None # type: ignore
294294 return _dict_not_none (
295- type = 'function-plain' ,
295+ type = 'serializer- function-plain' ,
296296 function = function ,
297297 is_field_serializer = is_field_serializer ,
298298 info_arg = info_arg ,
@@ -322,7 +322,7 @@ def __call__(self, input_value: Any, index_key: int | str | None = None, /) -> A
322322
323323
324324class WrapSerializerFunctionSerSchema (TypedDict , total = False ):
325- type : Required [Literal ['function-wrap' ]]
325+ type : Required [Literal ['serializer- function-wrap' ]]
326326 function : Required [WrapSerializerFunction ]
327327 is_field_serializer : bool # default False
328328 info_arg : bool # default False
@@ -356,7 +356,7 @@ def wrap_serializer_function_ser_schema(
356356 # just to avoid extra elements in schema, and to use the actual default defined in rust
357357 when_used = None # type: ignore
358358 return _dict_not_none (
359- type = 'function-wrap' ,
359+ type = 'serializer- function-wrap' ,
360360 function = function ,
361361 is_field_serializer = is_field_serializer ,
362362 info_arg = info_arg ,
@@ -1966,7 +1966,7 @@ class _ValidatorFunctionSchema(TypedDict, total=False):
19661966
19671967
19681968class BeforeValidatorFunctionSchema (_ValidatorFunctionSchema , total = False ):
1969- type : Required [Literal ['function-before' ]]
1969+ type : Required [Literal ['validator- function-before' ]]
19701970 json_schema_input_schema : CoreSchema
19711971
19721972
@@ -2006,7 +2006,7 @@ def fn(v: bytes) -> str:
20062006 serialization: Custom serialization schema
20072007 """
20082008 return _dict_not_none (
2009- type = 'function-before' ,
2009+ type = 'validator- function-before' ,
20102010 function = {'type' : 'no-info' , 'function' : function },
20112011 schema = schema ,
20122012 ref = ref ,
@@ -2057,7 +2057,7 @@ def fn(v: bytes, info: core_schema.ValidationInfo) -> str:
20572057 serialization: Custom serialization schema
20582058 """
20592059 return _dict_not_none (
2060- type = 'function-before' ,
2060+ type = 'validator- function-before' ,
20612061 function = _dict_not_none (type = 'with-info' , function = function , field_name = field_name ),
20622062 schema = schema ,
20632063 ref = ref ,
@@ -2068,7 +2068,7 @@ def fn(v: bytes, info: core_schema.ValidationInfo) -> str:
20682068
20692069
20702070class AfterValidatorFunctionSchema (_ValidatorFunctionSchema , total = False ):
2071- type : Required [Literal ['function-after' ]]
2071+ type : Required [Literal ['validator- function-after' ]]
20722072
20732073
20742074def no_info_after_validator_function (
@@ -2105,7 +2105,7 @@ def fn(v: str) -> str:
21052105 serialization: Custom serialization schema
21062106 """
21072107 return _dict_not_none (
2108- type = 'function-after' ,
2108+ type = 'validator- function-after' ,
21092109 function = {'type' : 'no-info' , 'function' : function },
21102110 schema = schema ,
21112111 ref = ref ,
@@ -2154,7 +2154,7 @@ def fn(v: str, info: core_schema.ValidationInfo) -> str:
21542154 serialization: Custom serialization schema
21552155 """
21562156 return _dict_not_none (
2157- type = 'function-after' ,
2157+ type = 'validator- function-after' ,
21582158 function = _dict_not_none (type = 'with-info' , function = function , field_name = field_name ),
21592159 schema = schema ,
21602160 ref = ref ,
@@ -2191,7 +2191,7 @@ class WithInfoWrapValidatorFunctionSchema(TypedDict, total=False):
21912191
21922192
21932193class WrapValidatorFunctionSchema (TypedDict , total = False ):
2194- type : Required [Literal ['function-wrap' ]]
2194+ type : Required [Literal ['validator- function-wrap' ]]
21952195 function : Required [WrapValidatorFunction ]
21962196 schema : Required [CoreSchema ]
21972197 ref : str
@@ -2239,7 +2239,7 @@ def fn(
22392239 serialization: Custom serialization schema
22402240 """
22412241 return _dict_not_none (
2242- type = 'function-wrap' ,
2242+ type = 'validator- function-wrap' ,
22432243 function = {'type' : 'no-info' , 'function' : function },
22442244 schema = schema ,
22452245 json_schema_input_schema = json_schema_input_schema ,
@@ -2291,7 +2291,7 @@ def fn(
22912291 serialization: Custom serialization schema
22922292 """
22932293 return _dict_not_none (
2294- type = 'function-wrap' ,
2294+ type = 'validator- function-wrap' ,
22952295 function = _dict_not_none (type = 'with-info' , function = function , field_name = field_name ),
22962296 schema = schema ,
22972297 json_schema_input_schema = json_schema_input_schema ,
@@ -2302,7 +2302,7 @@ def fn(
23022302
23032303
23042304class PlainValidatorFunctionSchema (TypedDict , total = False ):
2305- type : Required [Literal ['function-plain' ]]
2305+ type : Required [Literal ['validator- function-plain' ]]
23062306 function : Required [ValidationFunction ]
23072307 ref : str
23082308 json_schema_input_schema : CoreSchema
@@ -2341,7 +2341,7 @@ def fn(v: str) -> str:
23412341 serialization: Custom serialization schema
23422342 """
23432343 return _dict_not_none (
2344- type = 'function-plain' ,
2344+ type = 'validator- function-plain' ,
23452345 function = {'type' : 'no-info' , 'function' : function },
23462346 ref = ref ,
23472347 json_schema_input_schema = json_schema_input_schema ,
@@ -2383,7 +2383,7 @@ def fn(v: str, info: core_schema.ValidationInfo) -> str:
23832383 serialization: Custom serialization schema
23842384 """
23852385 return _dict_not_none (
2386- type = 'function-plain' ,
2386+ type = 'validator- function-plain' ,
23872387 function = _dict_not_none (type = 'with-info' , function = function , field_name = field_name ),
23882388 ref = ref ,
23892389 json_schema_input_schema = json_schema_input_schema ,
@@ -3965,10 +3965,10 @@ def definition_reference_schema(
39653965 'frozenset' ,
39663966 'generator' ,
39673967 'dict' ,
3968- 'function-after' ,
3969- 'function-before' ,
3970- 'function-wrap' ,
3971- 'function-plain' ,
3968+ 'validator- function-after' ,
3969+ 'validator- function-before' ,
3970+ 'validator- function-wrap' ,
3971+ 'validator- function-plain' ,
39723972 'default' ,
39733973 'nullable' ,
39743974 'union' ,
0 commit comments