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
The examples in the docs about validation in mappers are not correct - at least, exceptions are raised when calling e.g. put_invalid in the way that is is shown in the docs.
It is not clear what the errors parameter for put_invalid should actually be.
This is the example code I'm referring to:
[...]
try:
data>>profile_mapper# This is shorthand for _patchexceptValidationErrorase:
errors.update(dict(e))
iferrors:
returnself.patch_invalid(errors)
The examples in the docs about validation in mappers are not correct - at least, exceptions are raised when calling e.g.
put_invalid
in the way that is is shown in the docs.It is not clear what the
errors
parameter forput_invalid
should actually be.This is the example code I'm referring to:
https://django-nap.readthedocs.io/en/latest/rest/index.html#example-updating-two-objects
The text was updated successfully, but these errors were encountered: