ashb commented on code in PR #48678:
URL: https://github.com/apache/airflow/pull/48678#discussion_r2026557915


##########
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:
   ```suggestion
       middleware: str
       name: str
       
       args: list[Any] | None = None
       kwargs: dict[str, Any] | None = None
   ```
   
   feels better than allow extra



-- 
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]

Reply via email to