          """
          self._initialise_endpoints()
  
          paths = self.get_paths(None if public else request)
          if not paths:
              return None
  
          schema = {
              'openapi': '3.0.2',
              'info': self.get_info(),
              'paths': paths,
          }
 
</s> remove         paths, view_endpoints = self._get_paths_and_endpoints(request)

        # Only generate the path prefix for paths that will be included
        if not paths:
            return None

 </s> add         _, view_endpoints = self._get_paths_and_endpoints(request)
          """
          self._initialise_endpoints()
  
          paths = self.get_paths(None if public else request)



          schema = {
              'openapi': '3.0.2',
              'info': self.get_info(),
              'paths': paths,
          }
keep keep keep keep replace replace replace keep keep keep keep keep
 Return valid OpenAPI schema even when empty. 
rest_framework/schemas/openapi.py