sunank200 commented on code in PR #37826:
URL: https://github.com/apache/airflow/pull/37826#discussion_r1510818907
##########
airflow/api_connexion/endpoints/dag_endpoint.py:
##########
@@ -81,11 +81,13 @@ def get_dag_details(
for key, value in dag.__dict__.items():
if not key.startswith("_") and not hasattr(dag_model, key):
setattr(dag_model, key, value)
+
try:
dag_detail_schema = DAGDetailSchema(only=fields) if fields else
DAGDetailSchema()
except ValueError as e:
raise BadRequest("DAGDetailSchema init error", detail=str(e))
- return dag_detail_schema.dump(dag_model)
+ serialized_dag_model = dag_detail_schema.dump(dag_model)
+ return serialized_dag_model
Review Comment:
Changed it to `dag_detail_schema`
--
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]