Closed Routhinator closed 1 year ago
With DRF endpoints, we get errors and responses in an object that contains a detail key
detail
{ "detail": "error" }
However not with the registration endpoints. I'm seeing what should be the contents of the detail key returned as the top level object:
{"password1":["This password is too short. It must contain at least 8 characters.","This password is too common."]}
Is there a way to wrap this output so we can normalize the api responses?
Never mind, I've recalled that this is somewhat standard with validation errors.
With DRF endpoints, we get errors and responses in an object that contains a
detail
keyHowever not with the registration endpoints. I'm seeing what should be the contents of the
detail
key returned as the top level object:Is there a way to wrap this output so we can normalize the api responses?