Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Does avrocppgen support arrays?

$
0
0
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.

Viewing all articles
Browse latest Browse all 5648

Trending Articles