Skip to content

Instantly share code, notes, and snippets.

@pvillard31
Created June 27, 2018 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvillard31/bf30f0dccc474ba1fd91dccab09752a9 to your computer and use it in GitHub Desktop.
Save pvillard31/bf30f0dccc474ba1fd91dccab09752a9 to your computer and use it in GitHub Desktop.
{
"type" : "record",
"name" : "customers",
"namespace" : "customer",
"fields" : [ {
"name" : "customer_id",
"type" : "long"
}, {
"name" : "name",
"type" : "string"
}, {
"name" : "addresses",
"type" : {
"type" : "record",
"name" : "customers",
"namespace" : "addresses.customer",
"fields" : [ {
"name" : "address",
"type" : {
"type" : "array",
"items" : {
"type" : "record",
"name" : "customers",
"namespace" : "address.addresses.customer",
"fields" : [ {
"name" : "type",
"type" : "string"
}, {
"name" : "value",
"type" : "string"
} ]
}
}
} ]
}
}, {
"name" : "accounts",
"type" : {
"type" : "record",
"name" : "customers",
"namespace" : "accounts.customer",
"fields" : [ {
"name" : "account",
"type" : {
"type" : "array",
"items" : {
"type" : "record",
"name" : "customers",
"namespace" : "account.accounts.customer",
"fields" : [ {
"name" : "account_id",
"type" : "long"
}, {
"name" : "shortname",
"type" : "string"
}, {
"name" : "balance",
"type" : "double"
}, {
"name" : "transactions",
"type" : [ "null", {
"type" : "record",
"name" : "customers",
"namespace" : "transactions.account.accounts.customer",
"fields" : [ {
"name" : "transaction",
"type" : {
"type" : "array",
"items" : {
"type" : "record",
"name" : "customers",
"namespace" : "transaction.transactions.account.accounts.customer",
"fields" : [ {
"name" : "transaction_id",
"type" : "long"
}, {
"name" : "source_account_id",
"type" : "long"
}, {
"name" : "destination_account_id",
"type" : "long"
}, {
"name" : "amount",
"type" : "double"
} ]
}
}
} ]
} ]
} ]
}
}
} ]
}
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment