withReader package:avro

Decodes the container as a list of values of the requested type. The provided reader schema will be de-conflicted with the schema embedded with the container. Errors are reported as a part of the list and the list will stop at first error. This means that the consumer will get all the "good" content from the container until the error is detected, then this error and then the list is finished.