Replies: 1 comment
-
I'm not sure to understand your question. Default deserializer is not kept when a conversion is registered, because there must be a way to remove it, so I've chosen this design. Does it solve your issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After adding a deserializer to a class, the default deserializer is not accessible anymore. By default deserializer, I mean the one that can be used before adding a deserializer:
When Foo derives from int, I can make it work by adding the following deserializer:
and the str deserializer will check the constraints.
But what to do for dataclasses and still have the constraints checked by apischema ? The following fails since the default deserializer with dict is no more available:
So, shouldn't the default deserializer be kept ?
Beta Was this translation helpful? Give feedback.
All reactions