I'm trying to convert XML to JSON with ValidateRecord using XMLReader. Arrays with multiple elements work fine, but an array with only one element fails.
In XMLReader docs it says clearly:
"If a field in a schema is embedded in an array, the reader expects zero, one or more occurrences of the field in a record. "
But in fact an array with only one field is transferred to "invalid" with an error message:
"Record #1 is invalid due to:
content1 is not a valid value for /array_field: Value is of type java.lang.String but was expected to be of type ARRAY[STRING]"
Both examples have same schema;
Example 1 (success)
Example 2 (invalid):
Same as example 1, but the second array_field removed
Seems to be a BUG or is this an error in the processor documentation?