Dome404 opened a new issue, #44870:
URL: https://github.com/apache/airflow/issues/44870
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.6.2.
### What happened?
When triggering DAGs manually in the Airflow UI, while using any validation
options available, it only allows the default value to be changed by +-1.
Normal triggering with no validation options:
DAG definition:
```
@dag(
***
params={"keks": Param(0.7, type="number")},
***
)
```
Airflow UI

Works without problem
Trying to trigger with validation for minimum and maximum:
DAG definition:
```
@dag(
***
params={"keks": Param(0.7, type="number", minimum=0, maximum=1)},
***
)
```
Airflow UI


Validation Works as intended
But if we try to input any number that isn't +-1 of the original number, the
validation breaks

### What you think should happen instead?
The UI should behave the same as when there are no validators when using
validators, allowing inputing a float number regardless of it being default + 1
or default -1.
### How to reproduce
Make a DAG with a defined parameter which is a number and contains
validation.
Something like this:
```
@dag(
***
params={"keks": Param(0.7, type="number", minimum=0, maximum=1)},
***
)
```
Run Airflow and try to trigger this DAG w/confige changing the parameter to
anything else that should be valid, for example a float number around the
default value (which is inside the min/max validation)
### Operating System
ProductName: macOS ProductVersion: 14.6.1 BuildVersion:
23G93
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else?
Every time when validators are used for a number field in params for Airflow
UI
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]