sunank200 commented on code in PR #46882:
URL: https://github.com/apache/airflow/pull/46882#discussion_r1961946285
##########
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:
That is correct, but here, data_interval is not part of the body. How can
that be accessed?
##########
airflow/api_fastapi/core_api/datamodels/dag_run.py:
##########
@@ -20,10 +20,11 @@
from datetime import datetime
from enum import Enum
+import pendulum
from pydantic import AwareDatetime, Field, NonNegativeInt, model_validator
from airflow.api_fastapi.core_api.base import BaseModel, StrictBaseModel
-from airflow.models import DagRun
+from airflow.models import DAG, DagRun
Review Comment:
changed it
--
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]