(datum, schema, field=None, raise_errors=True)
return _validate(datum, parsed_schema, named_schemas, field, raise_errors)
Determine if a python datum is an instance of a schema.

    Parameters
    ----------
    datum: Any
        Data being validated
    schema: dict
        Schema
    field: str, optional
        Record field being validated
    raise_errors: bool, optional
        If true, errors are raised for invalid data. If false, a simple
        True (valid) or False (invalid) result is returned


    Example::

        from fastavro.validation import validate
        schema = {...}
        record = {...}
        validate(record, schema)
Determine if a python datum is an instance of a schema.
Determine if a python datum is an instance of a schema .
def validate(datum, schema, field=None, raise_errors=True):
    """
    Determine if a python datum is an instance of a schema.

    Parameters
    ----------
    datum: Any
        Data being validated
    schema: dict
        Schema
    field: str, optional
        Record field being validated
    raise_errors: bool, optional
        If true, errors are raised for invalid data. If false, a simple
        True (valid) or False (invalid) result is returned


    Example::

        from fastavro.validation import validate
        schema = {...}
        record = {...}
        validate(record, schema)
    """
    named_schemas = {}
    parsed_schema = parse_schema(schema, named_schemas)
    return _validate(datum, parsed_schema, named_schemas, field, raise_errors)
def validate ( datum , schema , field = None , raise_errors = True ) : named_schemas = { } parsed_schema = parse_schema ( schema , named_schemas ) return _validate ( datum , parsed_schema , named_schemas , field , raise_errors )