summaryrefslogtreecommitdiffstats
path: root/plugins/plugins-context/context-schema/context-schema-avro/src/test/resources/avsc/UnionExample.avsc
blob: 96b6050fb387864e1ae40b2124a0d1b73ecc4c7b (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
29
30
{
	"namespace": "example.avro",
	"type": "record",
	"name": "User",
	"fields": [
		{
			"name": "name",
			"type": "string"
		},
		{
			"name": "favourite_number",
			"type": [
				"null",
				"int"
			]
		},
		{
			"name": "favourite_colour",
			"type": [
				"null",
				"string"
			]
		},
		{
			"name": "favourite_group",
			"type": ["null", "string"],
			"default": "null"
		}
	]
}