2017-05-04 67 views
1

我尝试不同的东西可以与下列Web UI https://schema-registry-ui.landoop.com如何为融合模式注册表嵌套avro模式?

我不能似乎把下列注册表:

{ 
    "namespace": "test.avro", 
    "type": "record", 
    "name": "test", 
    "fields": [ 
     { 
      "name": "field1", 
      "type": "string" 
     }, 
     { 
      "name": "field2", 
      "type": "record", 
      "fields":[ 
       {"name": "field1", "type": "string" }, 
       {"name": "field2", "type": "string"}, 
       {"name": "intField", "type": "int"} 
      ] 
     } 
    ] 
} 

此外,有没有一种方法来指代从内到另一个模式当前创建复合/嵌套模式的一个?

回答