zhongjiajie commented on issue #88: URL: https://github.com/apache/dolphinscheduler-sdk-python/issues/88#issuecomment-1873558645
hi @HarshitNagpal29 , we already have some utils function for parameter which you can see in https://github.com/apache/dolphinscheduler-sdk-python/blob/48586a3702df3f708044c8c03eedd442f21cf24f/src/pydolphinscheduler/core/parameter.py#L113 and you can see when we add this, we can use param as dict type ```py task = Task( input_params={"key1": value1} output_params={"key2": value2} ) ``` so maybe we can change http code like ```diff http = Http( name="http", url="http://www.google.com", http_method="GET", - http_params=[ - {"prop": "abc", "httpParametersType": "PARAMETER", "value": "def"} - ], +. http_params={"abc": "def"} ) ``` BTW, we have some test case https://github.com/apache/dolphinscheduler-sdk-python/blob/68d2670242ca9e47d4eb4b878334ab3fe972b262/tests/core/test_local_parameter.py#L97-L116 maybe you can have a look -- 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]
