I have this yaml im trying to load into python with yaml.safe_load(file) and everytime im getting yaml.parser.ParserError: while parsing a block m ...
I have this yaml im trying to load into python with yaml.safe_load(file) and everytime im getting yaml.parser.ParserError: while parsing a block m ...
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 ...
I want to set conditional validate for empty parameter. For example: I need that empty parameter in param2 determined by the condition: If param1 ...
I have some code see EOM; it's by no means final but is the best way (so far) I've seen/conceived for validating multiple date formats in a somewhat p ...
I have no clue why my code doesn't work, hence looking for some help. That's my sample JSON array: and my code is as follows: and the error I'm ...
I have a basic data_schema and I produce a list of many data points. Each data point follow my data_schema. How can I validate them all at once as par ...
I want validate a field with one value greater or equal 01/01/1900 in type datetime in Cerberus, but not works this way: Anyone could help me? I'm ...
How do I catch the UNALLOWED_VALUE error? cerberus.errors.UNALLOWED_VALUE in v._errors - does not work thanks for the answer ...
Given a dictionary where the top level keys can be any value, but there is a strict schema within the values of those keys: {"rand_value": ["key1": " ...
I'd like to have default values in nested dicts with Cerberus normalize function. Unfortunately it's not working. I have code such as: from yaml impo ...
I would like to allow a field to be empty, but when it is not empty I want it to be Integer and range checked. I will need to coerce the field, when n ...
Started to use cerberus for contract testing purposes. It works perfectly in cases, when we got dict-based JSON structure, e.g: {'results': [{"key": ...
Lets say that I have this json: And I want to restrict the json from containing the substring "my name is", so if I receive: Cerberus will me th ...
I'm trying to build a schema where the statement can be a single dict or a list of dicts. Ex: {'Document': {'key': 'value'}} Or multiple keys: {'Do ...
I'm trying to validatie the following doc. Using the following schema. I get the following error: {days: ['must be of dict type']} I cannot fig ...
How can I validate that certain type is a list and it contains only e.g string elements, of unknown number? My current solution is but it doesn't ...
I have a set of documents and schemas I am doing validation against (shocker). These documents are JSON messages from various different clients that ...
There are two fields "field1" and "field2". The condition is either "field1" or "field2" can take 'ANY' value, but both fields cannot have 'ANY' value ...
I have read issues here and here using keysrules and valuesrules but I've only seen them validate nested not root. I'd like to valid the top level roo ...
I am trying to validate JSON, the schema for which specifies a list of dicts with arbitrary string keys, the corresponding values of which are dicts w ...