You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/09 14:12:59 UTC

[GitHub] [pulsar] jerrypeng added a comment to the discussion: JSONSchema should works with generic (parameterized type) POJO/DTO.

GitHub user jerrypeng added a comment to the discussion: JSONSchema should works with generic (parameterized type) POJO/DTO.

So we use Avro underneath to generate a schema for the class.  Parameterized/generics in Java are currently not support for schema generation in Avro.  Though there is discussion and a PR to add that:

https://issues.apache.org/jira/browse/AVRO-2248

https://github.com/apache/avro/pull/356

Though not sure if that is ever going to get merged in.

GitHub link: https://github.com/apache/pulsar/discussions/18849#discussioncomment-4352447

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org