Hi,

I have the same problem, I think this is not supported yet because I 
couldn't find a solution anywhere.
In my case I'm doing the swagger documentation and can't change the 
'example model' that uses this kind of JSON.

Allan

Em quinta-feira, 12 de janeiro de 2017 17:21:57 UTC-2, Ata Mahjoubfar 
escreveu:
>
> 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