Created
June 27, 2018 12:22
-
-
Save pvillard31/bf30f0dccc474ba1fd91dccab09752a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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