Added api for serializer supplying openapi schema including autoschema

This commit is contained in:
Torstein A. Bø 2020-08-27 13:14:31 +02:00
parent 4ebc7800bc
commit 05120c4658

View File

@ -512,7 +512,7 @@ class AutoSchema(ViewInspector):
properties = {}
try:
return serializer.get_object_openapi_schema()
return serializer.get_object_openapi_schema(autoschema=self)
except AttributeError:
pass