ugol/jr

Compile fails when a schema avsc has a record name that starts with map_ or array_

Opened this issue · 0 comments

eljeko commented

An Avro schema names that starts with map or array brakes the compile, eg..

{
  "type" : "record",
  "namespace" : "",
  "name" : "map_of_my_city",
  "fields" : [...]
}

{
  "type" : "record",
  "namespace" : "",
  "name" : "array_of_events",
  "fields" : [...]
}

In the go generate phase the strings that starts with map_ or array_ have a special meaning

The current workaround is to remove array_ or map_ as prefix for filed names.