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-unsubscr...@pulsar.apache.org