eolivelli opened a new pull request #10076:
URL: https://github.com/apache/pulsar/pull/10076
Fixes #10075
### Motivation
We need a way to access the native schema, in order to have detailed
metadata.
The alternative is currently to parse again the schema definition, but this
is not efficient.
### Modifications
Add a new method `Optional<Object> Schema#getNativeSchema` and implement it
for AVRO, JSON and Protobuf
### Verifying this change
This change added tests
### Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? JavaDocs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]