-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Mapperly does not properly map DateTimeOffset to gRPC entities #1107
Comments
Hey, unfortunately this is "intentional" but not ideal. Mapperly will try to convert
Mapperly doesn't have ability to look for matching static constructors like As you've found, providing Mapperly with a @latonz do you think it would be worth adding support for GRPC/Proto types? I suspect they are frequently used with Mapperly and would be appreciated by a lot of people. |
I think adding support for non .NET types is not a good idea as this would get endless. Instead we could think about adding support for
|
Closing this as it works as expected. |
Describe the bug
When mapping from a domain entity containing a
DateTimeOffset
property to a gRPC DTO containing agoogle.protobuf.Timestamp
property, Mapperly does not set the correct property value. Instead the default value is assigned.Declaration code
Actual generated code
Expected generated code
Environment (please complete the following information):
Additional context
Example project is available here: https://github.com/DaveNayMT/Mapperly_gRPC
The text was updated successfully, but these errors were encountered: