github.com/confluentinc/confluent-kafka-go@v1.9.2/schemaregistry/test/avro/complex.avsc (about)

     1  {
     2      "name": "advanced",
     3      "type": "record",
     4      "doc": "advanced schema for tests",
     5      "namespace": "python.test.advanced",
     6      "fields": [
     7          {
     8              "name": "number",
     9              "doc": "age",
    10              "type": [
    11                  "long",
    12                  "null"
    13              ]
    14          },
    15          {
    16              "name": "name",
    17              "doc": "a name",
    18              "type": [
    19                  "string"
    20              ]
    21          },
    22          {
    23              "name": "friends",
    24              "doc": "friends",
    25              "type" : {
    26                  "type": "map",
    27                  "values" : {
    28                      "name": "basicPerson",
    29                      "type": "record",
    30                      "namespace": "python.test.advanced",
    31                      "fields": [
    32                          {
    33                              "name": "number",
    34                              "doc": "friend age",
    35                              "type": [
    36                                  "long",
    37                                  "null"
    38                              ]
    39                          },
    40                          {
    41                              "name": "name",
    42                              "doc": "friend name",
    43                              "type": [
    44                                  "string"
    45                              ]
    46                          }
    47                      ]
    48                  }
    49              }
    50          },
    51          {
    52              "name" : "family",
    53              "doc" : "family",
    54              "type" : {
    55                  "namespace" : "python.test.advanced",
    56                  "type" : "map",
    57                  "values" : "basicPerson"
    58              }
    59          }
    60      ]
    61  }