Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
Code example:
import com.couchbase.client.scala.implicits.Codec |
import com.github.plokhotnyuk.jsoniter_scala.macros.CodecMakerConfig |
|
case class User(name: String, age: Int, addresses: Seq[Address]) |
object User {
|
implicit val codec: Codec[User] = Codec.codec[User](
|
CodecMakerConfig.withFieldNameMapper(
|
Map("name" -> "n", "age" -> "a", "addresses" -> "s") |
)
|
)
|
}
|
Attachments
For Gerrit Dashboard: SCBC-199 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
121177,3 | SCBC-199: Custom CodecMakerConfig when generate implicit Codec | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |
122251,2 | SCBC-199: Custom CodecMakerConfig when generate implicit Codec | colossus | couchbase-jvm-clients | Status: MERGED | +2 | +1 |