I need to validate Python dicts that will have arbitrary names. When I attempt to validate them using Cerberus, I get unknown field
. Is there a way of allowing for arbitrary dict names?
I was thinking that keysrules
might work, but it appears to only work on items within the base dict.
{'account_created': {'category': 'Accounts',
'conversion_event': True,
'description': 'A new account is created'}
}
I would like to be able to use an arbitrary name where account_created
is in this dict.