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

case class schema derivation: inherit namespace from sealed trait #833

Merged
merged 3 commits into from
May 15, 2024

Conversation

mberndt123
Copy link
Contributor

@mberndt123 mberndt123 commented May 14, 2024

Back in Avro4s 4, case classes inherited the @Namespace attribute from their parent trait. This behaviour changed in Avro4s 5, leading to all sorts of incompatible schema changes in our project.

I think the old behaviour was actually more sensible, so this PR restores it.

@sksamuel
Copy link
Owner

This is a regression so I agree.

@sksamuel sksamuel merged commit 01a005a into sksamuel:master May 15, 2024
1 check passed
@mberndt123 mberndt123 deleted the fix-sealed-trait branch July 23, 2024 12:01
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 this pull request may close these issues.

2 participants