lib/avro/io.rb in avro-salsify-fork-1.9.0.0 vs lib/avro/io.rb in avro-salsify-fork-1.9.0.1

- old
+ new

@@ -541,10 +541,10 @@ end def write_data(writers_schema, logical_datum, encoder) datum = writers_schema.type_adapter.encode(logical_datum) - unless Schema.validate(writers_schema, datum) + unless Schema.validate(writers_schema, datum, encoded = true) raise AvroTypeError.new(writers_schema, datum) end # function dispatch to write datum case writers_schema.type_sym