jackdaw
jackdaw copied to clipboard
Type union coercion fails when record types come before others
Summary
The match-clj?
implementation on RecordType
doesn't check if clj-map
is actually a map, which it may not be if part of a type union.
Repro
- Go into
jackdaw.serdes.avro-test/schema-type-test
to the(testing "union"
form - In the
avro-schema
binding moverecord-1-schema
so that it's the first element of the vector - Run the test and observe that it fails