  
      def get_paths(self, request=None):
          result = {}
  
          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
  
          for path, method, view in view_endpoints:
              if not self.has_view_permissions(path, method, view):
                  continue
              operation = view.schema.get_operation(path, method)
              # Normalise path for any provided mount url.
 
</s> remove         if not paths:
            return None

 </s> add 
        _, view_endpoints = self._get_paths_and_endpoints(request)
  
      def get_paths(self, request=None):
          result = {}
  
        _, view_endpoints = self._get_paths_and_endpoints(request)
        _, view_endpoints = self._get_paths_and_endpoints(request)
        _, view_endpoints = self._get_paths_and_endpoints(request)
        _, view_endpoints = self._get_paths_and_endpoints(request)
        _, view_endpoints = self._get_paths_and_endpoints(request)
        _, view_endpoints = self._get_paths_and_endpoints(request)
          for path, method, view in view_endpoints:
              if not self.has_view_permissions(path, method, view):
                  continue
              operation = view.schema.get_operation(path, method)
              # Normalise path for any provided mount url.
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Return valid OpenAPI schema even when empty. 
rest_framework/schemas/openapi.py