jscheffl commented on code in PR #50142:
URL: https://github.com/apache/airflow/pull/50142#discussion_r2076165093
##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py:
##########
@@ -164,6 +165,14 @@ def get_timezone(cls, tz: Timezone | FixedTimezone) -> str
| None:
return None
return str(tz)
+ @field_validator("doc_md", mode="before")
+ @classmethod
+ def get_doc_md(cls, doc_md: str | None) -> str | None:
Review Comment:
Sorry, coming "late" to the party.... and just one tought... would it not be
better to "clean" the dedent at time of DAG parsing, not at point of retrieval?
That would prevent potential problems of the docs are consumed in other
scenarios as well.
--
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]