Skip to content

Commit

Permalink
Added support for None type (#2408)
Browse files Browse the repository at this point in the history
Currently None type will match Product type and thus type will be empty array and not null
  • Loading branch information
goldlil authored May 2, 2021
1 parent f634a30 commit d7236e7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ class XContentBuilder(root: JsonValue) {
case v: java.math.BigDecimal => field(name, v)
case v: BigInt => field(name, v)
case v: java.math.BigInteger => field(name, v)
case None => obj.putNull(name)
case values: Array[_] => autoarray(name, values)
case values: Seq[_] => autoarray(name, values)
case values: Iterator[_] => autoarray(name, values.toSeq)
Expand Down

0 comments on commit d7236e7

Please sign in to comment.