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 authored and GitHub committed 2018-05-31 00:15:21 +03:00
1 parent cc90bc1544
commit 256a052564
5 files changed
+70 -4

No files matched your search

+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