docs: def find_resource_paths(schema_dir):
      """The inverse of :func:`find_resource_names` used to generate
      a resource listing from a directory of swagger api docs.
      """
      def not_api_doc_file(filename):
          return not filename.endswith(API_DOCS_FILENAME)
  
      def not_swagger_dot_json(filename):
          # Exclude a Swagger 2.0 schema file if it happens to exist.
          return not os.path.basename(filename) == 'swagger.json'
  
      def filename_to_path(filename):
          filename, _ext = os.path.splitext(os.path.basename(filename))
          return '/' + filename
  
      filenames = glob.glob('{0}/*.json'.format(schema_dir))
      return map(filename_to_path,
                 filter(not_swagger_dot_json,
                        filter(not_api_doc_file, sorted(filenames))))