本节将介绍复杂数据类型的一些示例
{
"namespace": "nl.rabobank.beb.distribution",
"doc": "The type of channel an outbound message can be sent to.",
"name": "ChannelType",
"type": "enum",
"symbols": [
"EMAIL",
"PUSH",
"SMS"
]
}
[
{
"namespace": "nl.rabobank.beb.distribution",
"doc": "Identification of a customer",
"name": "CustomerId",
"type": "record",
"fields": [
{
"doc": "The customer identifier",
"name": "id",
"type": "string"
}
]
},
{
"namespace": "nl.rabobank.beb.distribution",
"doc": "Contains a list of customer ids.",
"name": "CustomerIds",
"type": "record",
"fields": [
{
"doc": "A list of customer identifiers",
"name": "customerIds",
"type": {
"type": "array",
"items": "CustomerId"
}
}
]
}
]