github.com/hamba/avro@v1.8.0/testdata/superhero.avsc (about)

     1  {
     2      "type": "record",
     3      "name": "Superhero",
     4      "namespace": "com.model",
     5      "fields": [
     6          {"name": "id", "type": "int"},
     7          {"name": "affiliation_id", "type": "int"},
     8          {"name": "name", "type": "string"},
     9          {"name": "life", "type": "float"},
    10          {"name": "energy", "type": "float"},
    11          {"name": "powers", "type": {
    12                  "type": "array",
    13                  "items": {
    14                      "type": "record",
    15                      "name": "Superpower",
    16                      "fields": [
    17                          {"name": "id", "type": "int"},
    18                          {"name": "name", "type": "string"},
    19                          {"name": "damage", "type": "float"},
    20                          {"name": "energy", "type": "float"},
    21                          {"name": "passive", "type": "boolean"}
    22                      ]
    23                  }
    24              }
    25          }
    26      ]
    27  }