Closed GeorgyBocharov closed 1 week ago
You schema is wrong. That is not how fields work.
{
"type": "record",
"name": "EnumRecord",
"fields": [
{"name": "test", "type": {"type": "enum", "name": "enum", "symbols": ["foo", "bar"]}}
]
}
oh, you are right. thanks
enum_record.avsc
Hamba version: v2.25.0
I get error "
Error: avro: unknown type: enum
" during generation of go struct from enum_record.avsc (file attached). The command I use isavrogen -pkg=codec enum_record.avsc
In source code I see that hamba supports enum avro type, but during code generation it fails