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
It would be nice if we could wire up the serializer to always transform certain scalar values a certain way. For example, all instances of Time may be transformed/serialized in a special way. Same with instances of Money or Duration.
(obviously this can also be solved by repeating attribute blocks over and over again in every serializer where the value object occur, but the whole idea with serializers is to standardise behaviour, also when it comes to scalar serialization)
On Tue, 26 Nov, 2019, 3:35 PM Sivalingam, ***@***.***> wrote:
Similarly I need all datetime fields to be formated in Timestamp. Any
suggestion?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#361?email_source=notifications&email_token=ACEAHZKAGRY6KDDINV5IPETQVTYGDA5CNFSM4GKAQ4O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFFONUA#issuecomment-558556880>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEAHZJHJ5TYD6SD5PNNKBTQVTYGDANCNFSM4GKAQ4OQ>
.
It would be nice if we could wire up the serializer to always transform certain scalar values a certain way. For example, all instances of
Time
may be transformed/serialized in a special way. Same with instances ofMoney
orDuration
.For example, something like this:
(obviously this can also be solved by repeating attribute blocks over and over again in every serializer where the value object occur, but the whole idea with serializers is to standardise behaviour, also when it comes to scalar serialization)
Let me know what you think! 😄
Some related issues: #49, #67, #135
The text was updated successfully, but these errors were encountered: