in avro/src/schema.rs [768:783]
fn get_field_custom_attributes(
field: &Map<String, Value>,
schema: &Schema,
) -> BTreeMap<String, Value> {
let mut custom_attributes: BTreeMap<String, Value> = BTreeMap::new();
for (key, value) in field {
match key.as_str() {
"type" | "name" | "doc" | "default" | "order" | "position" | "aliases"
| "logicalType" => continue,
key if key == "symbols" && matches!(schema, Schema::Enum(_)) => continue,
key if key == "size" && matches!(schema, Schema::Fixed(_)) => continue,
_ => custom_attributes.insert(key.clone(), value.clone()),
};
}
custom_attributes
}