You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Fokko Driesprong (Jira)" <ji...@apache.org> on 2020/01/02 20:39:00 UTC
[jira] [Resolved] (AVRO-2645) Ruby Avro does not validate record
names
[ https://issues.apache.org/jira/browse/AVRO-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fokko Driesprong resolved AVRO-2645.
------------------------------------
Fix Version/s: 1.10.0
Resolution: Fixed
> Ruby Avro does not validate record names
> ----------------------------------------
>
> Key: AVRO-2645
> URL: https://issues.apache.org/jira/browse/AVRO-2645
> Project: Apache Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.9.1
> Reporter: Daniel Orner
> Priority: Minor
> Fix For: 1.10.0
>
>
> Currently, the following Avro schema is considered valid and throws no errors:
> {code:java}
> {
> "type": "record",
> "name": "my-schema",
> "fields": [
> {
> "name": "id",
> "type": "long"
> }
> ]
> }
> {code}
> However, according to the Avro specification, names must:
> * start with [A-Za-z_]
> * subsequently contain only [A-Za-z0-9_]
> When using e.g. the Confluent Schema Registry, registering this schema fails because the Java Avro client correctly identifies this as an invalid schema.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)