--- /dev/null
+[
+ {
+ "namespace": "de.trion.microservices.avro",
+ "type": "enum",
+ "name": "CustomerLevel",
+ "symbols" : [ "BRONZE", "SILVER", "GOLD", "UNWANTED" ]
+ },
+ {
+ "namespace": "de.trion.microservices.avro",
+ "type": "record",
+ "name": "User",
+ "fields": [
+ { "name": "id", "type": "long" },
+ { "name": "level", "type": "CustomerLevel" },
+ { "name": "name", "type": "string" }
+ ]
+ },
+ {
+ "namespace": "de.trion.microservices.avro",
+ "type": "record",
+ "name": "OrderAndUser",
+ "fields": [
+ { "name": "orderId", "type": "string" },
+ { "name": "user", "type": [ "null", "User" ] }
+ ]
+ }
+]
--- /dev/null
+{
+ "namespace": "de.trion.microservices.avro",
+ "type": "record",
+ "name": "User",
+ "fields": [
+ { "name": "id", "type": "long" },
+ {
+ "name": "level",
+ "type":
+ {
+ "namespace": "de.trion.microservices.avro",
+ "type": "enum",
+ "name": "CustomerLevel",
+ "symbols" : [ "BRONZE", "SILVER", "GOLD", "UNWANTED" ]
+ }
+ },
+ { "name": "name", "type": "string" }
+ ]
+}