dheerajturaga commented on code in PR #69148: URL: https://github.com/apache/airflow/pull/69148#discussion_r3798991382
########## airflow-core/src/airflow/api_fastapi/core_api/datamodels/plugins.py: ########## @@ -72,6 +72,17 @@ class AppBuilderMenuItemResponse(BaseModel): BaseDestinationLiteral = Literal["nav", "dag", "dag_run", "task", "task_instance", "asset", "base"] +class PluginAppliesToResponse(BaseModel): + """Serializer for the optional Dag/task scoping criteria of a UI plugin.""" + + model_config = ConfigDict(extra="allow") Review Comment: Addressed. `PluginAppliesToResponse` now sets `model_config = ConfigDict(extra="forbid")`, so unknown response fields are rejected. Plugin-load validation also warns about and removes malformed or unknown criteria before serialization. --- Drafted-by: Codex (GPT-5) (no human review before posting) -- 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]
