          fields = [
              coreapi.Field(name=self.page_query_param, required=False, location='query')
          ]
          if self.page_size_query_param is not None:
              fields.append([
                  coreapi.Field(name=self.page_size_query_param, required=False, location='query')
              ])
          return fields
  
  
 
</s> remove             ])
 </s> add             )
            fields.append(
          fields = [
              coreapi.Field(name=self.page_query_param, required=False, location='query')
          ]
          if self.page_size_query_param is not None:
            fields.append(
                  coreapi.Field(name=self.page_size_query_param, required=False, location='query')
              ])
          return fields
  
  
keep keep keep keep replace keep keep keep keep keep
 Fix schema generation with custom page_size pagination param (#4567) 
rest_framework/pagination.py