We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The way the DSL code is generated by createSchema regarding the apply partially applied function, it prevent the possibility to have overloaded apply methods on the companion object of a case class where the macro is being used. There's a FIXME in the code related to this: https://github.com/ypg-data/sparrow/blob/master/core/src/test/scala/com.mediative.sparrow/SchemaSpec.scala#L67
createSchema
The solution is to replace the following style in the generated code:
implicit val schema = ( field[String]("name") and field[Long]("count") )(apply _)
By something of this style:
implicit val schema = ( field[String]("name") and field[Long]("count") )((name: String, count: Long) => apply(name, count))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The way the DSL code is generated by
createSchema
regarding the apply partially applied function, it prevent the possibility to have overloaded apply methods on the companion object of a case class where the macro is being used. There's a FIXME in the code related to this:https://github.com/ypg-data/sparrow/blob/master/core/src/test/scala/com.mediative.sparrow/SchemaSpec.scala#L67
The solution is to replace the following style in the generated code:
By something of this style:
The text was updated successfully, but these errors were encountered: