mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Fix SwaggerRenderer implementation example
This commit is contained in:
parent
6d4ada05ec
commit
02a81d3362
|
@ -246,7 +246,7 @@ to the Open API ("Swagger") format:
|
|||
|
||||
def render(self, data, media_type=None, renderer_context=None):
|
||||
codec = OpenAPICodec()
|
||||
return OpenAPICodec.dump(data)
|
||||
return codec.dump(data)
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user