Closed Andrapyre closed 6 months ago
Currently, all default values are precompiled. This has led to random generators, such as random UUID.randomUUID() and Instant.now() being memoized (see https://github.com/zio/zio-json/issues/1055). This PR adds an option to evaluate default parameters on-demand. See the accompanying PR for Scala 2 support: https://github.com/softwaremill/magnolia/pull/533
UUID.randomUUID()
Instant.now()
Description
Currently, all default values are precompiled. This has led to random generators, such as random
UUID.randomUUID()
andInstant.now()
being memoized (see https://github.com/zio/zio-json/issues/1055). This PR adds an option to evaluate default parameters on-demand. See the accompanying PR for Scala 2 support: https://github.com/softwaremill/magnolia/pull/533