ensure hashed symbols do not start with a number
MODIFY
fastavro/utils.py
fastavro/utils.py
@@ -197,7 +197,7 @@ def _anonymize_schema(schema: Schema, named_schemas: NamedSchemas) -> Schema:
elif schema_type == "enum":
parsed_schema["name"] = _md5(schema["name"])
- parsed_schema["symbols"] = [_md5(symbol) for symbol in schema["symbols"]]
+ parsed_schema["symbols"] = [f"E{_md5(symbol)}" for symbol in schema["symbols"]]
elif schema_type == "fixed":
parsed_schema["name"] = _md5(schema["name"])

ensure hashed symbols do not start with a number