{ "type": "record", "name": "RootRecord", "fields": [ { "name": "mylong", "type": "long" }, { "name": "mymap", "type": { "type": "map", "values": "int" } }, { "name": "nestedrecord", "type": { "type": "record", "name": "Nested", "fields": [ { "name": "inval2", "type": "string" }, { "name": "inval1", "type": "double" }, { "name": "inval3", "type": "int" } ] } }, { "name": "recordmap", "type": { "type": "map", "values": "Nested" } }, { "name": "withDefaultValue", "type": { "type": "record", "name": "WithDefaultValue", "fields": [ { "name": "s1", "type": "string" }, { "name": "d1", "type": "double" }, { "name": "i1", "type": "int" } ] }, "default": { "s1": "sval", "d1": 5.67, "i1": 99 } }, { "name": "union1WithDefaultValue", "type": [ "string", "int" ], "default": { "string": "sval" } }, { "name": "union2WithDefaultValue", "type": [ "string", "null" ], "default": null }, { "name": "myarray", "type": { "type": "array", "items": "double" } }, { "name": "myenum", "type": { "type": "enum", "name": "ExampleEnum", "symbols": [ "zero", "one", "two", "three" ] } }, { "name": "myunion", "type": [ "null", { "type": "map", "values": "int" }, "float" ], "default": null }, { "name": "anotherunion", "type": [ "bytes", "null" ] }, { "name": "mybool", "type": "boolean" }, { "name": "anothernested", "type": "Nested" }, { "name": "rwd", "type": { "type": "record", "name": "RecordWithDefault", "fields": [ { "name": "rwd_f1", "type": "Nested" } ] }, "default": { "rwd_f1": { "inval2": "hello", "inval1": 4.23, "inval3": 100 } } }, { "name": "myfixed", "type": { "type": "fixed", "size": 16, "name": "md5" } }, { "name": "anotherint", "type": "int" }, { "name": "bytes", "type": "bytes" } ] }