def validate(coll, record, schemas):
    'Validate a record for a given db\n\n    Parameters\n    ----------\n    coll : str\n        The name of the db in question\n    record : dict\n        The record to be validated\n    schemas : dict\n        The schema to validate against\n\n    Returns\n    -------\n    rtn : bool\n        True is valid\n    errors: dict\n        The errors encountered (if any)\n\n    '
    if (coll in schemas):
        schema = copy.deepcopy(schemas[coll])
        v = NoDescriptionValidator(schema)
        return (v.validate(record), v.errors)
    else:
        return (True, ())
Validate a record for a given db

Parameters
----------
coll : str
    The name of the db in question
record : dict
    The record to be validated
schemas : dict
    The schema to validate against

Returns
-------
rtn : bool
    True is valid
errors: dict
    The errors encountered (if any)
def validate(coll, record, schemas):
    'Validate a record for a given db\n\n    Parameters\n    ----------\n    coll : str\n        The name of the db in question\n    record : dict\n        The record to be validated\n    schemas : dict\n        The schema to validate against\n\n    Returns\n    -------\n    rtn : bool\n        True is valid\n    errors: dict\n        The errors encountered (if any)\n\n    '
    if (coll in schemas):
        schema = copy.deepcopy(schemas[coll])
        v = NoDescriptionValidator(schema)
        return (v.validate(record), v.errors)
    else:
        return (True, ())