【发布时间】:2018-04-11 10:20:47
【问题描述】:
我想在 Apache Avro 中创建一个简单 API 的架构,但问题是我的 API 具有标头字段“Content-Type”,而 Avro 不允许名称中包含“-”。 这是我的 JSON:
"headers": {"Content-Type": "application/x-www-form-urlencoded"}
这是架构示例:
{
"name": "headers",
"type": {
"type": "record",
"name": "headers",
"fields": [
{ "name": "Content-type", "type": ["string", "null"] }
]
}
},
【问题讨论】:
标签: data-modeling avro