github.com/confluentinc/confluent-kafka-go@v1.9.2/schemaregistry/test/avro/advanced-2.avsc (about) 1 { 2 "type":"record", 3 "name":"TestRecord", 4 "fields":[ 5 { 6 "name":"value", 7 "type":"int" 8 }, 9 { 10 "name":"defval1", 11 "type":"int", 12 "default":1234 13 }, 14 { 15 "name":"defval2", 16 "type":"boolean", 17 "default":true 18 }, 19 { 20 "name":"defval3", 21 "type":"double", 22 "default":567.89 23 }, 24 { 25 "name":"defval4", 26 "type":"long", 27 "default":2345 28 }, 29 { 30 "name":"union", 31 "type":[ { 32 "name":"union1", 33 "type":"string" 34 }, 35 { 36 "name":"union2", 37 "type":"boolean" 38 }, 39 { 40 "name":"union3", 41 "type":"int" 42 }], 43 "default":"null" 44 }, 45 { 46 "name":"rec", 47 "type":{ 48 "type":"array", 49 "items":{ 50 "type":"record", 51 "name":"TestRecord2", 52 "fields":[ 53 { 54 "name":"stringValue", 55 "type":"string" 56 }, 57 { 58 "name":"intValue", 59 "type":"int" 60 }, 61 { 62 "name" : "fruits", 63 "type" : { 64 "type" : "enum", 65 "name" : "FruitNames", 66 "symbols" : [ "apple", "banana", "pear", "plum" ] 67 } 68 }, 69 { 70 "name" : "nullableStringValue", 71 "type" : [ 72 "null", 73 "string" 74 ], 75 "default": null 76 } 77 ] 78 } 79 } 80 } 81 ] 82 }