vatsrahul1001 commented on code in PR #44383:
URL: https://github.com/apache/airflow/pull/44383#discussion_r1860200132
##########
airflow/api_fastapi/core_api/routes/public/monitor.py:
##########
@@ -27,4 +27,4 @@
@monitor_router.get("/health")
def get_health() -> HealthInfoSchema:
airflow_health_status = get_airflow_health()
- return HealthInfoSchema.model_validate(airflow_health_status)
+ return HealthInfoSchema.model_validate(airflow_health_status,
from_attributes=True)
Review Comment:
mypy giving me below error
```
airflow/api_fastapi/core_api/routes/public/monitor.py:30: error: Incompatible
return value type (got "dict[str, Any]", expected "HealthInfoSchema")
[return-value]
return airflow_health_status
^~~~~~~~~~~~~~~~~~~~~
Found 1 error in 1 file (checked 1193 source files)
```
--
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]