Validation Errors and null (for empty forms!) are not properly rendered #7843
Unanswered
s4ke
asked this question in
Ideas & Suggestions
Replies: 1 comment
-
@tomchristie Thanks for moving it here. I did not read that message in the Issue template properly. |
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
-
Summary
Errors and default values for JSON fields are not rendered nicely in the browsable API when using nested serializers.
Original discussion from #6243
Detail
Right now, the browsable API has the following behaviour for json fields for nested bound fields:
While not a big issue, this is a nuissance when testing out the browsable API and you mistyped before sending a request as you have to manually fix the error in your payload as well as the extra quotes around it that were introduced by drf.
Without my snippet:


With my snippet:
Possible Fix
This could be the fix:
Beta Was this translation helpful? Give feedback.
All reactions