mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
Added api for serializer supplying openapi schema including autoschema
This commit is contained in:
parent
4ebc7800bc
commit
05120c4658
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user