When defining a named type (schema), and then using it as a field type in Avro IDL, that named type gets defined twice in the resulting Avro Schema files; once as a separate schema, and again inline (for each schema that uses it).
The IDL:
@namespace("v0_1_example")
protocol SanityCheck {
enum TestEnum {
Foo,
Bar