You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Henry Fernandes (Jira)" <ji...@apache.org> on 2024/04/03 20:18:00 UTC
[jira] [Created] (AVRO-3968) Support for custom @AvroNamespace annotation
Henry Fernandes created AVRO-3968:
-------------------------------------
Summary: Support for custom @AvroNamespace annotation
Key: AVRO-3968
URL: https://issues.apache.org/jira/browse/AVRO-3968
Project: Apache Avro
Issue Type: Wish
Reporter: Henry Fernandes
Currently there are several java annotations like @AvroSchema, @AvroName, @AvroDoc etc that can be used to decorate Java POJO classes which in turn are used when generating avro schema with reflection.
While @AvroName annotation comes handly for overriding the name of fields, there is no support for overriding the namespace.
Currently by default the java POJO's package name is used as the namespace. This is a bit restrictive as there can be cases where we may want to generate the schema with a different namespace.
The ask over here is to provide a @AvroNamespace annotation that can let us override the namespace to what we intend to.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)