zio / zio-schema

Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations.
https://zio.dev/zio-schema
Apache License 2.0
141 stars 161 forks source link

update the codec for big decimal (#663) #687

Closed abhishek818 closed 3 months ago

abhishek818 commented 3 months ago

Refer:

import java.math.{BigDecimal => JBigDecimal, BigInteger

implicit val javaBigDecimal: BsonCodec[JBigDecimal] =
    BsonCodec(BsonEncoder.javaBigDecimal, BsonDecoder.java

Code Link

/claim #663 Closes #663

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.

jdegoes commented 3 months ago

Looks great, please add a test that fails without the change! 🙏

abhishek818 commented 3 months ago

Looks great, please add a test that fails without the change! 🙏

@jdegoes, I have added the test.