manatki / derevo

Multiple instance derivations inside single macro annotation

Website GitHub

derevo

Multiple instance derivations inside a single macro annotation

CI Release
Build Status Maven Central
val version = "0.10.5"

"org.manatki" %% "derevo-core"         % version  
"org.manatki" %% "derevo-cats"         % version  
"org.manatki" %% "derevo-circe"        % version  
"org.manatki" %% "derevo-ciris"        % version  
"org.manatki" %% "derevo-tethys"       % version  
"org.manatki" %% "derevo-tschema"      % version  
"org.manatki" %% "derevo-rmongo"       % version  
"org.manatki" %% "derevo-cats-tagless" % version  
"org.manatki" %% "derevo-pureconfig"   % version

Requires "paradise" for scala older than "2.13" and "-Ymacro-annotations" scalac option for scala "2.13".

Tethys

import org.manatki.derevo.derive
import tethys._
import tethys.derivation.builder.{FieldStyle, WriterDerivationConfig}
import tethys.jackson._

@derive(
      tethysReader,
      tethysWriter(WriterDerivationConfig.withFieldStyle(FieldStyle.lowerSnakecase))
    )
final case class Bar(stringName: String, integerAge: Int)