I am also running into a similar issue, did you ever find a solution for 
this?

--Jeff

On Thursday, January 12, 2017 at 11:21:57 AM UTC-8, Ata Mahjoubfar wrote:
>
> I am trying to use a nested serializer to enforce schema of a JSONField, 
> which is a list of objects with specific fields. I pass the many=True flag 
> to the nested serialized, but the auto-generated JSON form, html form, and 
> schema does not show the required fields of the JSONField objects. The 
> JSONField ("types" here) shows up as an empty array:
> {
>     "types": [],
>     "shape": null
> }
> Is there any way for me to set the minimum number of items required along 
> with the many=True flag? I assume that would show the fields of the nested 
> serializer in the raw JSON input of the Django Rest Framework. Is there any 
> better solution?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to