[
https://issues.apache.org/jira/browse/AVRO-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Gonyo updated AVRO-3040:
-----------------------------
Description:
GenericWriter expects schema array properties to be an actual Array type, while
Reflect and Specific writers expect array fields to be of IList<T>.
For convenience, it would nice to support List, IList or Array types for array
schema fields. Changing GenericWriter code to look for an IList instead of
Array it can support existing Array and allow List<T>/IList<T>, etc. A small
change with a large benefit to code using the library.
was:
GenericWriter expects schema array properties to be an actual Array type, while
Reflect and Specific writers expect array fields to be of IList<T>.
For convenience, it would nice to support List, IList or Array types for array
schema fields.
> GenericWriter: Array requirement too restrictive
> ------------------------------------------------
>
> Key: AVRO-3040
> URL: https://issues.apache.org/jira/browse/AVRO-3040
> Project: Apache Avro
> Issue Type: Improvement
> Components: csharp
> Reporter: John Gonyo
> Priority: Major
>
> GenericWriter expects schema array properties to be an actual Array type,
> while Reflect and Specific writers expect array fields to be of IList<T>.
> For convenience, it would nice to support List, IList or Array types for
> array schema fields. Changing GenericWriter code to look for an IList
> instead of Array it can support existing Array and allow List<T>/IList<T>,
> etc. A small change with a large benefit to code using the library.
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)