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
{{ message }}
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
During create or update process of serializers, sometimes KeyError occurs and currently, we aren't handling them. We can implement validations to check if required fields are present and if there is a problem, we can raise serializers.ValidationError and this returns a message we specify plus meaningful status code.
The text was updated successfully, but these errors were encountered:
Quick question @cerob . Should I have a robust validation on the frontend? If we are going to handle bad input it in the backend, I can just show error message which will ease my load since not much left to the milestone.
During
create
orupdate
process of serializers, sometimesKeyError
occurs and currently, we aren't handling them. We can implement validations to check if required fields are present and if there is a problem, we can raiseserializers.ValidationError
and this returns a message we specify plus meaningful status code.The text was updated successfully, but these errors were encountered: