Skip to content

Commit d4decda

Browse files
committed
update the docs for specifying custom examples for error responses to match the changes introduced in v0.14.0
1 parent 0ef7585 commit d4decda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/openapi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ from drf_spectacular.utils import OpenApiExample
403403

404404

405405
class CustomAutoSchema(AutoSchema):
406-
def get_examples(self):
406+
def _get_error_response_examples(self):
407407
errors = [exceptions.PermissionDenied(), exceptions.NotFound()]
408408
return [get_example_from_exception(error) for error in errors]
409409

0 commit comments

Comments
 (0)