  
  
  def get_schema_view(
          title=None, url=None, description=None, urlconf=None, renderer_classes=None,
          public=False, patterns=None, generator_class=SchemaGenerator,
          authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES,
          permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES):
      """
      Return a schema view.
      """
 
</s> remove from .generators import SchemaGenerator
from .inspectors import AutoSchema, DefaultSchema, ManualSchema  # noqa
 </s> add from . import coreapi, openapi
from .inspectors import DefaultSchema  # noqa
from .coreapi import AutoSchema, ManualSchema, SchemaGenerator  # noqa </s> remove     # Avoid import cycle on APIView
    from .views import SchemaView
 </s> add     if generator_class is None:
        if coreapi.is_enabled():
            generator_class = coreapi.SchemaGenerator
        else:
            generator_class = openapi.SchemaGenerator
 </s> remove         Return a dictionary containing all the links that should be
        included in the API schema.
 </s> add         Generate (path, method, view) given (path, method, callback) for paths. </s> remove         links = self.get_links(None if public else request)
        if not links:
            return None

        url = self.url
        if not url and request is not None:
            url = request.build_absolute_uri()

        distribute_links(links)
        return coreapi.Document(
            title=self.title, description=self.description,
            url=url, content=links
        )

    def get_links(self, request=None):
 </s> add     def _get_paths_and_endpoints(self, request):
        public=False, patterns=None, generator_class=None,
  
  
  def get_schema_view(
          title=None, url=None, description=None, urlconf=None, renderer_classes=None,
        public=False, patterns=None, generator_class=None,
          authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES,
          permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES):
      """
      Return a schema view.
      """
keep keep keep keep replace keep keep keep keep keep
 Added OpenAPI Schema Generation. (#6532)

Co-authored-by: Lucidiot <lucidiot@protonmail.com>
Co-authored-by: dongfangtianyu <dongfangtianyu@qq.com> 
rest_framework/schemas/__init__.py