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
When DPG model initialize, we will call _get_deserialize_callable_from_annotation to loop all possible types to confirm the deserialization type. And there is same logic when [serialize].(
)
Actually codegen already knows the type info when generated SDK so the runtime logic could be done when generation so that we could save the time for initialize. For example: we could add parameter serialize_func and deserialize_func for rest_field:
When DPG model initialize, we will call
_get_deserialize_callable_from_annotation
to loop all possible types to confirm the deserialization type. And there is same logic when [serialize].(autorest.python/packages/typespec-python/test/azure/generated/special-words/specialwords/_model_base.py
Line 429 in 708bcb1
Actually codegen already knows the type info when generated SDK so the runtime logic could be done when generation so that we could save the time for initialize. For example: we could add parameter
serialize_func
anddeserialize_func
forrest_field
:The text was updated successfully, but these errors were encountered: