code: def has_valid_dispatch_view_docs(endpoint):
      
      klass = endpoint.__dict__.get('view_class', None)
      return klass and hasattr(klass, 'dispatch_request') \
          and hasattr(endpoint, 'methods') \
          and getattr(klass, 'dispatch_request').__doc__
docs: Return True if dispatch_request is swaggable