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

Default value annotation for a record type #525

Open
soujiro32167 opened this issue May 24, 2023 · 0 comments
Open

Default value annotation for a record type #525

soujiro32167 opened this issue May 24, 2023 · 0 comments

Comments

@soujiro32167
Copy link
Contributor

To maintain backward compatibility, I would like to be able to do this:

  case class Foo(
    @AvroFieldDefault(1) a: Int,
    @AvroFieldDefault("foo") b: String,
  )

  object Foo {
    implicit val codec: Codec[Foo] = Codec.derive
  }
soujiro32167 added a commit to soujiro32167/vulcan that referenced this issue May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant