pierrejeambrun commented on code in PR #46882:
URL: https://github.com/apache/airflow/pull/46882#discussion_r1961796818
##########
airflow/api_fastapi/core_api/datamodels/dag_run.py:
##########
@@ -99,6 +100,38 @@ def check_data_intervals(cls, values):
)
return values
+ def validate_context(self, dag: DAG) -> dict:
Review Comment:
You can make this a `@model_validator(mode="after")`, this way it's
automatically called after `TriggerDAGRunPostBody` is deserialized and
instanciated.
--
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]