bbovenzi commented on code in PR #25961: URL: https://github.com/apache/airflow/pull/25961#discussion_r958746181
########## airflow/api_connexion/schemas/dataset_schema.py: ########## @@ -91,6 +92,25 @@ class DatasetCollectionSchema(Schema): dataset_collection_schema = DatasetCollectionSchema() +class BasicDAGRunSchema(SQLAlchemySchema): + """Basic Schema for DAGRun""" + + class Meta: + """Meta""" + + model = DagRun + dateformat = "iso" + + run_id = auto_field(data_key='dag_run_id') + dag_id = auto_field(dump_only=True) + execution_date = auto_field(data_key="logical_date", dump_only=True) Review Comment: the dag run model still uses `execution_date` but the `data_key`, changes the name to logical date for the API docs. -- 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]
