You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
TypeError: Expected a `coreapi.Document` instance
File "django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "django/core/handlers/base.py", line 217, in _get_response
response = self.process_exception_by_middleware(e, request)
File "django/core/handlers/base.py", line 215, in _get_response
response = response.render()
File "django/template/response.py", line 107, in render
self.content = self.rendered_content
File "rest_framework/response.py", line 72, in rendered_content
ret = renderer.render(self.data, accepted_media_type, context)
File "drf_openapi/codec.py", line 113, in render
return OpenAPICodec().encode(data, extra=extra)
File "drf_openapi/codec.py", line 97, in encode
raise TypeError('Expected a `coreapi.Document` instance')
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Can't access to SchemaView without being logged in, in spite of using AllowAny permissions.
The only way to be able to use this is to set public=True when using the generator, the working code is:
What I Did
The error traceback is:
The text was updated successfully, but these errors were encountered: