Hi Enrico,
Thank you for chiming in.
I understand your concerns regarding the state of a Schema instance.
However, what would be the reason for keeping SchemaHash as part of the
private API? Of course, a user could re-create its functionality in their
own code but then why should we not offer this
A Schema instance is stateful (and contians mutable state) and in the end
it contains a reference to the PulsarClient instance that is using it.
Look at how AutoConsume schema works for instance.
I don't think it is possible to support such API in the general case.
If you want to use it as a key