HarshitNagpal29 commented on code in PR #130:
URL: 
https://github.com/apache/dolphinscheduler-sdk-python/pull/130#discussion_r1440364270


##########
src/pydolphinscheduler/tasks/http.py:
##########
@@ -82,8 +106,27 @@ def __init__(
             raise PyDSParamException(
                 "Parameter http_method %s not support.", http_method
             )
+        
+        if isinstance(http_params, list):
+            warnings.warn(
+                "The `http_params` parameter currently accepts a dictionary 
instead of a list. Your parameter is being ignored.",
+                DeprecationWarning,
+            )
+            
         self.http_method = http_method
-        self.http_params = http_params or []
+        self.http_params = http_params  # Storing the original value

Review Comment:
   @zhongjiajie sir done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to