cerberus

Specify list length range in Python Cerberus

Specify list length range in Python Cerberus Question: 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", …

Total answers: 1

Dependencies validation using Cerberus

Dependencies validation using Cerberus Question: Am validating a CSV file with Cerberus but am struggling with what I’d assume is some basic logic Scenario: A CSV file has 2 columns. Column 2 requires to have a value only if Column 1 has a value. If Column 1 is empty then Column 2 should also be …

Total answers: 3