Skip to content

Commit

Permalink
Don't write null for empty option fields of generic records
Browse files Browse the repository at this point in the history
  • Loading branch information
987Nabil committed Aug 14, 2024
1 parent ce3a315 commit 6e262c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ object JsonCodec {

val isEmptyCollection = value match {
case _: Iterable[_] => value.asInstanceOf[Iterable[_]].isEmpty
case None => true
case _ => false
}

Expand Down

0 comments on commit 6e262c3

Please sign in to comment.