Open g-paras opened 3 years ago
I can reproduce the issue.
I can reproduce the issue.
prompt([
{
'type': 'checkbox',
'name': 'invalid_value',
'message': 'Any value invalid',
'validate': lambda answer: False,
'choices': [{'name': 'item 1'}, {'name': 'item 2'}, {'name': 'item 3'}]
}
])
The example from the documentation doesn't work either.
I think it's not implemented yet: https://github.com/CITGuru/PyInquirer/blob/master/PyInquirer/prompts/checkbox.py#L121
According to the code, user must select at least one topping otherwise it should print 'You must choose at least one topping' then ask again but instead program prints a dictionary with toppings as key and empty list as value, which is wrong.