Skip to content

circe-derivation 0.13.0-M4

Pre-release
Pre-release

Choose a tag to compare

@travisbrown travisbrown released this 23 Mar 10:06
· 166 commits to master since this release
v0.13.0-M4
cd5d5f2

This release introduces deriveX overloads that allow you to specify only a name transformer if you want to use the defaults for using default values or a discriminator field (which are yes and no respectively). For example, instead of this:

implicit val codecForFoo: Codec.AsObject[Foo] = deriveCodec(renaming.snakeCase, true, None)

You can now write this:

implicit val codecForFoo: Codec.AsObject[Foo] = deriveCodec(renaming.snakeCase)

Thanks to @shrynx for adding this change in #187.