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


##########
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:
   args and kwargs are removed. Other extra fields are still returned from the 
API. (That follows the same pattern as what we do for other Plugin fields, I 
think we should do the same.)



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