github.com/hamba/avro@v1.8.0/testdata/echo.avpr (about)

     1  {
     2    "protocol": "Echo",
     3    "namespace": "org.hamba.avro",
     4    "doc": "Simple echo protocol",
     5    "types": [
     6      {"name":  "Ping", "type": "record", "fields": [
     7        {"name": "timestamp", "type": "long", "default": -1},
     8        {"name": "text", "type": "string", "default": ""}
     9      ]},
    10      {"name":  "Pong", "type": "record", "fields": [
    11        {"name": "timestamp", "type": "long", "default": -1},
    12        {"name": "ping", "type": "Ping"}
    13      ]},
    14      {"name":  "PongError", "type": "error", "fields": [
    15        {"name": "timestamp", "type": "long", "default": -1},
    16        {"name": "reason", "type": "string"}
    17      ]}
    18    ],
    19    "messages": {
    20      "ping": {
    21        "request": [{"name": "ping", "type": "Ping"}],
    22        "response": "Pong",
    23        "errors": ["PongError"]
    24      }
    25    }
    26  }