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

Schema generation: How to make all complex types (records) as top level types? #634

Open
Zuchos opened this issue Apr 7, 2021 · 1 comment

Comments

@Zuchos
Copy link

Zuchos commented Apr 7, 2021

I'm using case classes as schema, however I'm also generating schema file to share it.

When my complex types are using nested complex types, those types are defined when they first occur. Even when they are reused in other complex types they are defined in the place when they are used for the first time.

My questions is it possible to make Avro4s to generate those complex types as top level types (not the nested one)?

@sksamuel
Copy link
Owner

Not possible at the moment, but I want to include this in 5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants