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
Hi, is it possible to use multiple matchers in a single custom serializer?
Right now I have this, but I want to add another matcher for datetime fields without disrupting my number matcher:
The matcher is just a function that takes the data and path and returns the transformed data. path_type is a factory function. You can see the implementation here:
I'm open to the idea of an alternative API to provide some syntactic sugar for per type replacers. If you have a suggestion or would like to propose a PR, it'd be appreciated. Otherwise you can achieve your objective with a custom matcher function. I can provide an example at some point later this week.
Hi, is it possible to use multiple matchers in a single custom serializer?
Right now I have this, but I want to add another matcher for
datetime
fields without disrupting my number matcher:I'm not seeing anything about this in the README
The text was updated successfully, but these errors were encountered: