Mike Pan created AVRO-2525:
------------------------------
Summary: Display field name when raising AvroTypeError
Key: AVRO-2525
URL: https://issues.apache.org/jira/browse/AVRO-2525
Project: Apache Avro
Issue Type: Improvement
Components: ruby
Reporter: Mike Pan
Currently, `"The datum #\{datum.inspect} is not an example of schema
#\{expected_schema}"` is displayed when `AvroTypeError` is raised.
In the case user will mostly mistype the field name (typo or upper-lower),
`nil` will be displayed for `#\{datum.inspect}`. When there are multiple fields
mistyped, which is much likely for a large schema initiative, it is quite
difficult to find out the mistyped field.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)