Skip to content

Instantly share code, notes, and snippets.

@tspannhw
Forked from asdaraujo/transaction.avsc
Created March 16, 2023 19:36
Show Gist options
  • Select an option

  • Save tspannhw/2838d69bb660fdf53c8f511158798e8a to your computer and use it in GitHub Desktop.

Select an option

Save tspannhw/2838d69bb660fdf53c8f511158798e8a to your computer and use it in GitHub Desktop.
{
"type": "record",
"name": "FinTransactions",
"fields": [
{ "name": "ts", "type": "string" },
{ "name": "account_id", "type": "string" },
{ "name": "transaction_id", "type": "string" },
{ "name": "amount", "type": "int" },
{ "name": "lat", "type": "double" },
{ "name": "lon", "type": "double" },
{ "name": "fraud_score", "type": ["null","double"], "default": null },
{ "name": "model_response",
"type": ["null",{
"type": "record",
"name": "ModelResponse",
"fields": [
{ "name": "fraud_score", "type": ["null","double"], "default": null }
]
}],
"default": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment