Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3040

GenericWriter: Array requirement too restrictive - use IList instead for broader array type support.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.1
    • None
    • csharp
    • None

    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.

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jgonyo-snag John Gonyo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: