klarna / erlavro

Avro support for Erlang/Elixir (http://avro.apache.org/)
Apache License 2.0
131 stars 39 forks source link

Update avro_util.erl #87

Closed AlfUA closed 5 years ago

AlfUA commented 5 years ago

To parse a schema that contains the following structure (an object as a value): { "name":Limit", "type":["null",{ "type":"bytes", "scale":2, "precision":64, "connect.version":1, "connect.parameters":{"scale":"2"}, "connect.name":"org.apache.kafka.connect.data.Decimal", "logicalType":"decimal" }], "default":null }. So we have to add an extra function clause that should handle the nested tuple, otherwise, schema parsing fails.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 559


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/avro_util.erl 3 4 75.0%
<!-- Total: 3 4 75.0% -->
Totals Coverage Status
Change from base Build 557: -0.06%
Covered Lines: 1697
Relevant Lines: 1698

💛 - Coveralls