我有以下json文件
{"product": "RGAS chair",
"company": "RGA GmbH"}
,我想检查Company属性的值是否来自一组有限的值 所以我的这个json文件的avro架构是:
{
"type": "record",
"name": "test",
"namespace": "test",
"fields": [
{"name": "product","type":"string"},
{"name": "company","type":{"name": "suit_value_company", "type":"enum","symbols":[ "RGA GmbH", "DKT SA", "ABBV GmbH"]}}
]
}
当我验证文件时,出现符号空格问题。 如何在Avro架构中使用空格验证值?