I have the following piece of code.
from cerberus import Validator
schema = {
'my_field': {
'type': 'list',
'schema': {'type': 'string'}
}
}
validator = Validator(schema)
data = {'my_field': ('foo', 'bar')}
validator.validate(data)
I get the following exception:
TypeError: 'tuple' object does not support item assignment
When I set my_field as list works fine. However, I would like cerberus to support tuple objects as well.
I have the following piece of code.
I get the following exception:
TypeError: 'tuple' object does not support item assignmentWhen I set
my_fieldas list works fine. However, I would like cerberus to supporttuple objectsas well.