[ 
https://issues.apache.org/jira/browse/AVRO-2998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17264846#comment-17264846
 ] 

ASF subversion and git services commented on AVRO-2998:
-------------------------------------------------------

Commit e8db541f0c343d5f5f0773f7cec687a83cee3698 in avro's branch 
refs/heads/dependabot/nuget/lang/csharp/Microsoft.NET.Test.Sdk-16.8.3 from Joel 
Turkel
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e8db541 ]

AVRO-2998: Schema validation for hashes with symbol keys (#1036)

AVRO-2749 added support for serializing hashes with symbol keys but they were 
still considered invalid. This fixes schema validation to also accept hashes 
with symbol keys.

> 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
>            Priority: Major
>
> 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)

Reply via email to