Add ability to set Schema fields through the serializer Meta class (#134)

* Add swagger_schema_fields attribute to serializer Meta class
* Add documentation

Closes #132.
This commit is contained in:
Cristi Vîjdea
2018-05-31 00:15:21 +03:00
committed by GitHub
parent cc90bc1544
commit 256a052564
5 changed files with 70 additions and 4 deletions
+5
View File
@@ -1578,6 +1578,11 @@ definitions:
minLength: 1
readOnly: true
readOnly: true
example:
title: parent
todo:
title: child
todo: null
UserSerializerrr:
required:
- username