You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Joel Turkel (Jira)" <ji...@apache.org> on 2020/12/07 14:04:00 UTC

[jira] [Created] (AVRO-2998) Ruby: Records with symbol keys fail validation

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)