diff --git a/zio-schema-bson/src/main/scala/zio/schema/codec/BsonSchemaCodec.scala b/zio-schema-bson/src/main/scala/zio/schema/codec/BsonSchemaCodec.scala index 2531f4f97..bf3298813 100644 --- a/zio-schema-bson/src/main/scala/zio/schema/codec/BsonSchemaCodec.scala +++ b/zio-schema-bson/src/main/scala/zio/schema/codec/BsonSchemaCodec.scala @@ -412,7 +412,7 @@ object BsonSchemaCodec { case StandardType.BinaryType => BsonCodec.byteIterable[Chunk].asInstanceOf[BsonCodec[A]] case StandardType.CharType => BsonCodec.char.asInstanceOf[BsonCodec[A]] case StandardType.BigIntegerType => BsonCodec.bigInteger.asInstanceOf[BsonCodec[A]] - case StandardType.BigDecimalType => BsonCodec.bigDecimal.asInstanceOf[BsonCodec[A]] + case StandardType.BigDecimalType => BsonCodec.javaBigDecimal.asInstanceOf[BsonCodec[A]] case StandardType.UUIDType => BsonCodec.uuid.asInstanceOf[BsonCodec[A]] case StandardType.DayOfWeekType => BsonCodec.dayOfWeek.asInstanceOf[BsonCodec[A]] // BsonCodec[java.time.DayOfWeek]