I need to set the minimum and maximum length of a list between 2 - 5. Is there a way to specify this in Python Cerberus. Here's what I have currently but this allows lists of all sizes:
{
"levels": {
"type": "list",
"schema": {
"type": "string",
"required": True,
"nullable": False,
"empty": False,
},
"required": True,
},
}