Joel Turkel created AVRO-2998:
---------------------------------
Summary: Ruby: Records with symbol keys fail validation
Key: AVRO-2998
URL: https://issues.apache.org/jira/browse/AVRO-2998
Project: Apache Avro
Issue Type: Bug
Components: ruby
Affects Versions: 1.10.0
Reporter: Joel Turkel
Assignee: Joel Turkel
AVRO-2749 added Ruby serialization support for records with symbolic keys.
However, these records still fail schema validation (which also impacts union
serialization). Consider the following schema:
{code:java}
{
"type": "record",
"name": "name",
"fields": [
{
"type": "int",
"name": "sub"
}
]
}{code}
The following hash is considered invalidate by Avro::SchemaValidator.validate!:
{code:java}
{ sub: 1 }
{code}
Github PR coming shortly
--
This message was sent by Atlassian Jira
(v8.3.4#803005)