potiuk commented on code in PR #35723:
URL: https://github.com/apache/airflow/pull/35723#discussion_r1398271589


##########
airflow/serialization/serialized_objects.py:
##########
@@ -498,7 +498,7 @@ def serialize(
                 type_=DAT.SIMPLE_TASK_INSTANCE,
             )
         elif isinstance(var, Connection):
-            return cls._encode(var.to_dict(), type_=DAT.CONNECTION)
+            return cls._encode(var.to_json_dict(validate=True), 
type_=DAT.CONNECTION)

Review Comment:
   Isn't that going to be backwards incompatible for older connections? 



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