We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ef7585 commit d4decdaCopy full SHA for d4decda
docs/openapi.md
@@ -403,7 +403,7 @@ from drf_spectacular.utils import OpenApiExample
403
404
405
class CustomAutoSchema(AutoSchema):
406
- def get_examples(self):
+ def _get_error_response_examples(self):
407
errors = [exceptions.PermissionDenied(), exceptions.NotFound()]
408
return [get_example_from_exception(error) for error in errors]
409
0 commit comments