vatsrahul1001 commented on code in PR #44383:
URL: https://github.com/apache/airflow/pull/44383#discussion_r1858507541
##########
airflow/api_fastapi/core_api/datamodels/monitor.py:
##########
@@ -44,9 +44,14 @@ class DagProcessorInfoSchema(BaseInfoSchema):
class HealthInfoSchema(BaseModel):
- """Schema for the Health endpoint."""
+ """Schema for the Health endpoint without dag processor."""
metadatabase: BaseInfoSchema
Review Comment:
@rawwar, during my implementation, I tried the following options:
1. Using `Optional[DagProcessorInfoSchema]`, but I was still encountering a
Pydantic validation error for the field.
2. Adding `response_model_exclude_none=True` to my endpoint to ignore None
values by default in the response. However, this applied to all fields, which
was not the desired behavior."
--
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]