Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.11.1
Description
The Avro::SchemaParseError exception only has information about the type name that is missing.
However, when nesting schemas (record fields):
- [If] A name only is specified, i.e., a name that contains no dots. In this case the namespace is taken from the most tightly enclosing schema or protocol. For example, if "name": "X" is specified, and this occurs within a field of the record definition of org.foo.Y, then the fullname is org.foo.X. If there is no enclosing namespace then the null namespace is used.
The UnknownSchemaError is raised in Avro::Schema.real_parse that already has the `default_namespace` parameter. It should be just a matter of adding this attribute to the error class.
Attachments
Issue Links
- links to