我有这两个 avsc 文件,第一个文件引用了第二个文件,但是当尝试使用 avrogen 进行编译时,会返回错误并且不会生成架构。
错误:
Exception occurred. Undefined name: AnalogProperty at 'fields[0].type.items.fields[2].type.fields[0].type'
avsc 1
"doc": "Measurement Type, Analog or Discrete",
"name": "AnalogProperties",
"type": {
"fields": [
{
"doc": "",
"name": "RealPower",
"type": "AnalogProperty"
}
}
avsc 2
{
"name": "AnalogProperty",
"namespace": "Kafka.AvroSchemas",
"doc": "AnalogProperty object",
"type": "record",
"fields": [{
"doc": "Circuit from requested topology.",
"name": "cValue",
"type": "double"
},
{
"doc": "Circuit from requested topology.",
"name": "cTimestamp",
"type": "string"
},
]
}