You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by John Langley <di...@gmail.com> on 2013/08/13 13:29:09 UTC
Does avrocppgen support arrays?
Does anyone have an example of a json specification that avrogencpp will
accept that includes an array?
I tried to extend the cpx.json example included in the distribution to
include an array field in the record and it fails with this error:
Failed to parse or compile schema: Unknown type: array
Below is my modification to the cpx.json example
{
"type": "record",
"name": "cpx",
"fields" : [
{"name": "re", "type": "double"},
{"name": "im", "type" : "double"},
{"name": "elements", "type" : "array", "items" : "string"}
]
}
Thanks in advance for pointers.