ashb commented on code in PR #48678:
URL: https://github.com/apache/airflow/pull/48678#discussion_r2026559649
##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/plugins.py:
##########
@@ -39,6 +39,15 @@ class FastAPIAppResponse(BaseModel):
name: str
+class FastAPIRootMiddlewareResponse(BaseModel):
+ """Serializer for Plugin FastAPI root middleware responses."""
+
+ model_config = ConfigDict(extra="allow")
+
+ middleware: str
+ name: str
Review Comment:
Oh, is this used just for the API response? In which case we probably don't
want to include args and kwargs at all, as that might be sensitive, so
```suggestion
middleware: str
name: str
```
--
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]