Attributes: Greater than (gt) does not work
Innders opened this issue · comments
To reproduce
Steps to reproduce the behavior:
- Go to
/settings/attributes
- Edit or create new attribute
- Set
gt
value to0
or0.5
. - Do not set
ge
Expected behavior
When setting the value in the scope, anything below or equal to gt
should throw an error.
ge
, lt
, le
seem to work.
Discovered whilst doing Attributes: Min and max values
Interesting. You are not sending a number, but a string. My wild guess is that implicit type conversions somehow mess with the validation. Normally this should return a type error as "-1"
is not a value that could be compared to a number. but Pydantic apparently tries to do some type casting there and fails.