Skip to content

Update method override example in Schemas docs #7013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2019
Merged

Update method override example in Schemas docs #7013

merged 1 commit into from
Oct 24, 2019

Conversation

ajyong
Copy link
Contributor

@ajyong ajyong commented Oct 24, 2019

get_link() was a method in the deprecated CoreAPI-based AutoSchema class. In 3.10, DRF moved to OpenAPI schema generation, and its AutoSchema class defines get_operation() instead. I updated the code example to follow suit.

Fixes #6887

get_link() was a method in the old CoreAPI-based AutoSchema implementation.  The new OpenAPI one defines get_operation() instead: the example code block was overlooked.
Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, super thanks.

@carltongibson carltongibson merged commit 4d57cd3 into encode:master Oct 24, 2019
@ajyong ajyong deleted the docs/fix-autoschema-method-override-example branch October 29, 2019 00:14
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
…7013)

get_link() was a method in the old CoreAPI-based AutoSchema implementation.  The new OpenAPI one defines get_operation() instead: the example code block was overlooked.
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
…7013)

get_link() was a method in the old CoreAPI-based AutoSchema implementation.  The new OpenAPI one defines get_operation() instead: the example code block was overlooked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema docs reference outdated methods
2 participants