Description
From AVRO-1886:
I'd like to get one thing improved, but it's fine as a follow-on.
+ when :fixed + if datum.is_a? String + message = "expected fixed with size #{expected_schema.size}, got \"#{datum}\" with size #{datum.size}" + result.add_error(path, message) unless datum.bytesize == expected_schema.size + else + result.add_error(path, "expected fixed with size #{expected_schema.size}, got #{actual_value_message(datum)}") + end
the message here should use datum.bytesize instead of datum.size.
Attachments
Attachments
Issue Links
- is broken by
-
AVRO-1886 Improve error reporting for schema validation
- Resolved
- links to