Not required DecimalField in nested Serializer gives error on empty input in browsable API #7746
Unanswered
jgadelange
asked this question in
Potential Issue
Replies: 3 comments
|
Probably worth including a screenshot of the browsable API form behavior for tickets like this. The browsable API isn't yet intended to support nested fields in forms, so you should be using the raw content input box, but let's take a quick look at this all the same - see if we can make any improvements. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I have a nested serializer with a
DecimalField(required=False). Implemented something like stated below:When I now use the browsable API I get a form as expected (a main field, sub field and a header for the Sub serializer). When I leave both inputs empty, I will only get an error for
sub_fieldsaying:A valid number is required.not formain_field.All reactions