A pure Python Avro schema validator that validates Python dicts against Avro schemas, supporting logical types, recursive types, custom types, and JSON Schema format for union types. Current version 1.2.1, released June 2022; maintenance mode.
pip install avro-validatorVerified import paths — ran on the pinned version, not inferred.
Create an Avro schema, validate a record, and check result.
Use result.is_valid and result.errors instead of comparing result directly.
schema_dict = json.loads(schema_str); schema = AvroSchema(schema_dict)
Manually check defaults before validation or use a different library if strict default validation is needed.
No dependency data recorded yet.