Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useDefaults parameter is ignored in deriveDecoder #297

Open
chikei opened this issue Mar 9, 2021 · 0 comments · May be fixed by #424
Open

useDefaults parameter is ignored in deriveDecoder #297

chikei opened this issue Mar 9, 2021 · 0 comments · May be fixed by #424

Comments

@chikei
Copy link

chikei commented Mar 9, 2021

import io.circe.Json
case class Foo(value: Json = Json.obj())
io.circe.derivation.deriveDecoder[Foo]((i: String) => i, false, None).decodeJson(Json.obj())

results Left(DecodingFailure(Attempt to decode value on failed cursor, List(DownField(value)))) in 0.13.0-M1 and before,
results Right(Foo(JObject(object[]))) in 0.13.0-M2 and after.

@s-nel s-nel linked a pull request Oct 3, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant