(datum, schema, named_schemas, parent_ns=None, raise_errors=True)
return (
        isinstance(datum, Mapping)
        and not ("-type" in datum and datum["-type"] != fullname)
        and all(
            _validate(
                datum=datum.get(f["name"], f.get("default")),
                schema=f["type"],
                named_schemas=named_schemas,
                field=f"{fullname}.{f['name']}",
                raise_errors=raise_errors,
            )
            for f in schema["fields"]
        )
    )
Check that the data is a Mapping type with all schema defined fields
    validated as True.

    Parameters
    ----------
    datum: Any
        Data being validated
    schema: dict
        Schema
    parent_ns: str
        parent namespace
    raise_errors: bool
        If true, raises ValidationError on invalid data
Check that the data is a Mapping type with all schema defined fields
    validated as True.
Check that the data is a Mapping type with all schema defined fields validated as True .
def validate_record(datum, schema, named_schemas, parent_ns=None, raise_errors=True):
    """
    Check that the data is a Mapping type with all schema defined fields
    validated as True.

    Parameters
    ----------
    datum: Any
        Data being validated
    schema: dict
        Schema
    parent_ns: str
        parent namespace
    raise_errors: bool
        If true, raises ValidationError on invalid data
    """
    _, fullname = schema_name(schema, parent_ns)
    return (
        isinstance(datum, Mapping)
        and not ("-type" in datum and datum["-type"] != fullname)
        and all(
            _validate(
                datum=datum.get(f["name"], f.get("default")),
                schema=f["type"],
                named_schemas=named_schemas,
                field=f"{fullname}.{f['name']}",
                raise_errors=raise_errors,
            )
            for f in schema["fields"]
        )
    )
def validate_record ( datum , schema , named_schemas , parent_ns = None , raise_errors = True ) : _ , fullname = schema_name ( schema , parent_ns ) return ( isinstance ( datum , Mapping ) and not ( "-type" in datum and datum [ "-type" ] != fullname ) and all ( _validate ( datum = datum . get ( f [ "name" ] , f . get ( "default" ) ) , schema = f [ "type" ] , named_schemas = named_schemas , field = f"{fullname}.{f['name']}" , raise_errors = raise_errors , ) for f in schema [ "fields" ] ) )