radai rosenblatt created AVRO-2742:
--------------------------------------

             Summary: Schema.Parser.parse() does not validate namespace
                 Key: AVRO-2742
                 URL: https://issues.apache.org/jira/browse/AVRO-2742
             Project: Apache Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.9.2
            Reporter: radai rosenblatt


[the spec|https://avro.apache.org/docs/current/spec.html#names] has the 
following to say about names:

bq. The name portion of a fullname, record field names, and enum symbols must: 
... A namespace is a dot-separated sequence of such names.

and yet the following schema parses just fine for me:
{code}
{
  "type": "record",
  "namespace": "this thing. has spaces.in it?!",
  "name": "HasInvalidNamespace",
  "fields": [
    {
      "name": "stringField",
      "type": "string"
    }
  ]
}
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to