-
Notifications
You must be signed in to change notification settings - Fork 9
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
Misleading error message when trying to use _.into.transform()
or _.to
in a given Transformer
definition
#165
Comments
Thanks for the report! So the problem here is that The error message is misleading in this case (underneath it looks for a As for a proper fix for your use case, when building out tl;dr final case class A(a: Int)
final case class B(b: Int)
given Transformer[A, B] = Transformer.define[A, B].build(Field.renamed(_.b, _.a)) |
_.into.transform()
or _.to
in a given Transformer
definition
Thanks a lot 👍 |
I must be dense but the following:
gives me
The path segment 'b' is not valid as it is not a field of a case class or an argument of a function @ B
What am I missing?
The text was updated successfully, but these errors were encountered: