All Downloads are FREE. Search and download functionalities are using the official Maven repository.

harness.zio.StdConfigs.scala Maven / Gradle / Ivy

There is a newer version: 5.1.3
Show newest version
package harness.zio

import harness.core.*
import harness.zio.json.*
import zio.json.*

object StdConfigs {

  implicit val colorModeJsonCodec: JsonCodec[ColorMode] =
    JsonCodec.fromHarnessStringEncoderAndDecoder

  final case class Tolerance(
      logTolerance: Logger.LogLevel,
  )
  object Tolerance {
    implicit val jsonCodec: JsonCodec[Tolerance] = DeriveJsonCodec.gen
  }

  final case class ToleranceAndColorMode(
      logTolerance: Logger.LogLevel,
      colorMode: ColorMode,
  )
  object ToleranceAndColorMode {
    implicit val jsonCodec: JsonCodec[ToleranceAndColorMode] = DeriveJsonCodec.gen
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy