You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Andrea Vinci (Jira)" <ji...@apache.org> on 2023/07/21 07:01:00 UTC
[jira] [Created] (AVRO-3809) Faulty validation of a type reference with implicit nested namespace
Andrea Vinci created AVRO-3809:
----------------------------------
Summary: Faulty validation of a type reference with implicit nested namespace
Key: AVRO-3809
URL: https://issues.apache.org/jira/browse/AVRO-3809
Project: Apache Avro
Issue Type: Bug
Components: rust
Reporter: Andrea Vinci
TheĀ {{validate_internal}} function is not propagating schema's sub-namespaces resulting in validation error of valid values.
For example, it is not possible to set a value for the following schema even though it is a valid one
{code:json}
{
"name": "record_name",
"namespace": "space",
"type": "record",
"fields": [
{
"name": "outer_field_1",
"type": {
"type": "record",
"name": "middle_record_name",
"namespace": "middle_namespace",
"fields": [
{
"name": "middle_field_1",
"type": {
"type": "record",
"name": "inner_record_name",
"fields": [
{ "name": "inner_field_1", "type": "double" }
]
}
},
{ "name": "middle_field_2", "type": "inner_record_name" }
]
}
}
]
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)