-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid code generation on fields of interface type #127
Comments
And what is wrong always work only with contents end-types (not declared field/property types)? |
It uses both the field type and the content type.
the problem currently with the interfaces in the fields, is that the code generator tries to do things that are not possible on an interface type. |
I have added tests for this, |
Maybe this can help. I've made some local modification in Wire to make exceptions give more data and managed to trace the problem.
The problem is in the
For this field Unfortunately, I don't have enough understanding of the code to get the meaning of such type name conversion (as you are not guaranteed to have a type with the same name as generic, but without generic parameters). |
I will continue to dig in this. I will keep updating here. |
If a field is of an interface type, Wire currently tries to fetch the fields of that type, which is invalid.
interface types should just act as an
object
field and let the concrete content of the field decide how to serialize the data.akkadotnet/akka.net#2365
The text was updated successfully, but these errors were encountered: