Skip to content

Schema docs reference outdated methods #6887

Closed
@knivets

Description

@knivets

https://www.django-rest-framework.org/api-guide/schemas/

Specifically the block that describes how to override AutoSchema references an undefined method get_link():

    from rest_framework.views import APIView
    from rest_framework.schemas.openapi import AutoSchema

    class CustomSchema(AutoSchema):
        def get_link(...):
            # Implement custom introspection here (or in other sub-methods)

    class CustomView(APIView):
        """APIView subclass with custom schema introspection."""
        schema = CustomSchema()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions