Replies: 1 comment
-
Reasoning is to match Django's behaviour. More detailed answer: #109 (comment). Can you give me some examples why you need this behaviour changed? What issues are you facing due to this? |
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
-
Hi @bhch
thanks for this awesome library. I have a question to the implementation detail.
In validators.validate_object(...) you require, that all keys of the schema need to be present, even if they are not required.
Is there a special reason for this limitation?
I identified one possible "reason", in the loop starting at line L239. But this could be handled in a different way:
Instead of
One could do something like:
If a
key
is not existing indata
it could be handled like akey
withNone
value.Would you accept a PR for this change?
Best regards
Harry
Beta Was this translation helpful? Give feedback.
All reactions