(records, schema, raise_errors=True)
return all(results)
Validate a list of data!

    Parameters
    ----------
    records: iterable
        List of records to validate
    schema: dict
        Schema
    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_many
        schema = {...}
        records = [{...}, {...}, ...]
        validate_many(records, schema)
Validate a list of data!
Validate a list of data!
def validate_many(records, schema, raise_errors=True):
    """
    Validate a list of data!

    Parameters
    ----------
    records: iterable
        List of records to validate
    schema: dict
        Schema
    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_many
        schema = {...}
        records = [{...}, {...}, ...]
        validate_many(records, schema)
    """
    named_schemas = {}
    parsed_schema = parse_schema(schema, named_schemas)
    errors = []
    results = []
    for record in records:
        try:
            results.append(
                _validate(
                    record, parsed_schema, named_schemas, raise_errors=raise_errors
                )
            )
        except ValidationError as e:
            errors.extend(e.errors)
    if raise_errors and errors:
        raise ValidationError(*errors)
    return all(results)
def validate_many ( records , schema , raise_errors = True ) : named_schemas = { } parsed_schema = parse_schema ( schema , named_schemas ) errors = [ ] results = [ ] for record in records : try : results . append ( _validate ( record , parsed_schema , named_schemas , raise_errors = raise_errors ) ) except ValidationError as e : errors . extend ( e . errors ) if raise_errors and errors : raise ValidationError ( * errors ) return all ( results )