[
https://issues.apache.org/jira/browse/AVRO-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17007073#comment-17007073
]
ASF subversion and git services commented on AVRO-2645:
-------------------------------------------------------
Commit d6cf7c46c20973f4e2e4ef41c064a40fb616994d in avro's branch
refs/heads/master from Daniel Orner
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=d6cf7c4 ]
AVRO-2645: Validate names in schemas in Ruby client (#732)
> 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
>
> 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)