You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that in "multi-language" products/projects (this is my case), Package might be empty or different from CsharpNamespace.
As a result SchemaRegistryTypeResolver cannot resolve the Type.
Describe the solution you'd like
I see a few possible solutions:
The simplest one, when protoFields.Package is null or empty use protoFields.Options.CsharpNamespace. This solution is not generic but solves my issue ;)
Inject some delegate (via a new config object or whatever) which allows overriding type name construction logic.
Allow to register IAsyncSchemaRegistryTypeNameResolver in DI and use the registered one instead of hardcoding concrete implementation.
The final solution might combine some of the suggested solutions above.
Are you able to help bring it to life and contribute with a Pull Request?
Yes
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your request related to a problem you have?
Here is a current version of
ConfluentProtobufTypeNameResolver.ResolveAsync
:The issue is that in "multi-language" products/projects (this is my case),
Package
might be empty or different fromCsharpNamespace
.As a result
SchemaRegistryTypeResolver
cannot resolve theType
.Describe the solution you'd like
I see a few possible solutions:
protoFields.Package
is null or empty useprotoFields.Options.CsharpNamespace
. This solution is not generic but solves my issue ;)IAsyncSchemaRegistryTypeNameResolver
in DI and use the registered one instead of hardcoding concrete implementation.The final solution might combine some of the suggested solutions above.
Are you able to help bring it to life and contribute with a Pull Request?
Yes
Additional context
No response
The text was updated successfully, but these errors were encountered: