Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
pablf committed Jun 30, 2024
1 parent 228b57c commit 7111b2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ object JsonCodec {
}.toMap

// if all cases are CaseClass0, decode as String
if (schema.annotations.exists(_.isInstanceOf[simpleEnum]) && cases.forall(
if (parentSchema.annotations.exists(_.isInstanceOf[simpleEnum]) && cases.forall(
_.schema.isInstanceOf[Schema.CaseClass0[_]]
)) {
val caseMap: Map[String, Z] =
Expand Down

0 comments on commit 7111b2a

Please sign in to comment.