summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/avro/tests/schema_tests/pass/namespace_recursive
blob: 3c2d0eb74bed6d470979edbcaf0c678b6753867a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ "type": "record",
  "name": "Container",
  "namespace": "namespace1",
  "fields": [
    { "name": "contained",
      "type": { "type": "record",
                "name": "MutuallyRecursive",
                "fields": [
                    { "name": "label", "type": "string" },
                    { "name": "children",
                        "type": {"type": "array", "items":
                            {"type": "record",
                                "name": "MutuallyRecursive",
                                "namespace": "namespace2",
                                "fields": [
                                    { "name": "value", "type": "int" },
                                    { "name": "children", "type": {"type": "array", "items": "namespace1.MutuallyRecursive" }},
                                    { "name": "morechildren", "type": {"type": "array", "items": "MutuallyRecursive" }}
                                ]
                            }
                        }
                    },
                    { "name": "anotherchild", "type": "namespace2.MutuallyRecursive"}
                ]
      }
    }
  ]
}