rawwar commented on code in PR #54903:
URL: https://github.com/apache/airflow/pull/54903#discussion_r2305762653
##########
airflow-core/src/airflow/api_fastapi/common/parameters.py:
##########
@@ -379,14 +379,15 @@ def filter_param_factory(
default_factory: Callable[[], T | None] | None = None,
skip_none: bool = True,
transform_callable: Callable[[T | None], Any] | None = None,
+ description: str | None = None,
) -> Callable[[T | None], FilterParam[T | None]]:
# if filter_name is not provided, use the attribute name as the default
filter_name = filter_name or attribute.name
# can only set either default_value or default_factory
query = (
- Query(alias=filter_name, default_factory=default_factory)
+ Query(alias=filter_name, default_factory=default_factory,
description=description)
Review Comment:
```suggestion
Query(alias=filter_name, default_factory=default_factory or
default_value, description=description)
```
--
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]