Make validate_inputs validate combo input correctly
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled

This commit is contained in:
Jedrzej Kosinski 2025-12-14 03:37:37 -08:00
parent 308ae94c66
commit b1b1429b43

View File

@ -914,7 +914,10 @@ async def validate_inputs(prompt_id, prompt, item, validated):
errors.append(error) errors.append(error)
continue continue
if isinstance(input_type, list): if isinstance(input_type, list) or input_type == io.Combo.io_type:
if input_type == io.Combo.io_type:
combo_options = extra_info.get("options", [])
else:
combo_options = input_type combo_options = input_type
if val not in combo_options: if val not in combo_options:
input_config = info input_config = info