I can do,
{
\"type\": \"record\",
\"name\": \"Foo\",
\"fields\": [
{\"name\": \"bar\", \"type\": {
\"type\": \"record\",
You can also define multiple schemas inside of one file:
schemas.avsc:
[
{
"type": "record",
"name": "Bar",
"fields": [ ]
},
{
"type": "record",
"name": "Foo",
"fields": [
{"name": "bar", "type": "Bar"}
]
}
]
If you want to reuse the schemas in multiple places this is not super nice but it improves readability and maintainability a lot in my opinion.