dataclasses-avroschema icon indicating copy to clipboard operation
dataclasses-avroschema copied to clipboard

Standardize the elements of lists and tuples

Open acr31 opened this issue 2 years ago • 1 comments

The standardize_custom_type function currently translates the elements of dicts and enums but not lists (or tuples). This means that if you try to serialise a class containing a list of custom classes then they don't get mapped. Also, if you try to serialise a class containing a tuple field it fails to be mapped to a list.

This change adds a mapping covering these cases.

acr31 avatar May 03 '22 12:05 acr31

Thanks @acr31

Could you write a test case for this? :-)

marcosschroh avatar May 04 '22 07:05 marcosschroh

closed by https://github.com/marcosschroh/dataclasses-avroschema/pull/211

marcosschroh avatar Oct 25 '22 09:10 marcosschroh