We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aca0f09 commit b05b915Copy full SHA for b05b915
1 file changed
src/main/scala/com/target/data_validator/JsonEncoders.scala
@@ -19,6 +19,7 @@ object JsonEncoders extends LazyLogging {
19
Json.fromString(a.toString)
20
}
21
22
+ // scalastyle:off cyclomatic.complexity
23
implicit val eventEncoder: Encoder[ValidatorEvent] = new Encoder[ValidatorEvent] {
24
override def apply(a: ValidatorEvent): Json = a match {
25
case vc: ValidatorCounter => Json.obj(
@@ -72,6 +73,7 @@ object JsonEncoders extends LazyLogging {
72
73
case vj: JsonEvent => vj.json
74
75
76
+ // scalastyle:on cyclomatic.complexity
77
78
implicit val baseEncoder: Encoder[ValidatorBase] = new Encoder[ValidatorBase] {
79
final def apply(a: ValidatorBase): Json = a.toJson
0 commit comments