bugraoz93 commented on code in PR #57718:
URL: https://github.com/apache/airflow/pull/57718#discussion_r2487727048


##########
airflow-ctl/src/airflowctl/api/client.py:
##########
@@ -214,6 +231,79 @@ def __init__(
             **kwargs,
         )
 
+    def _clean_empty_values(self, data: dict[str, Any]) -> dict[str, Any]:
+        """
+        Recursively remove keys with None or empty values from a dictionary if 
they are not required in the datamodels.

Review Comment:
   That was solved by Pydantic. In the other connected story, I will check the 
required field validation and give a proper error. Hope that could be solved 
with Pydantic as well.



-- 
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