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.
A default-rule would substitute any None-values, empty Mapping and Sequence-instances and numbers equal to zero for a given field with the provided constraint's value while a document is normalized. if the field isn't present at all, it will be added to the document with the constraint's value.
the default-constraint should be processed after coercing.
Now that we also transform the incoming document, I guess that stuff like this is welcome. Actually, we implemented a default rule in Eve so I know it is useful :) 👍
this is a follow-up of this.
A
default
-rule would substitute anyNone
-values, empty Mapping and Sequence-instances and numbers equal to zero for a given field with the provided constraint's value while a document is normalized. if the field isn't present at all, it will be added to the document with the constraint's value.the
default
-constraint should be processed after coercing.example:
The text was updated successfully, but these errors were encountered: