Daniel Orner created AVRO-2645:
----------------------------------
Summary: 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
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)