avro4s icon indicating copy to clipboard operation
avro4s copied to clipboard

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

Open Zuchos opened this issue 3 years ago • 1 comments

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)?

Zuchos avatar Apr 07 '21 13:04 Zuchos

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

sksamuel avatar Apr 19 '21 12:04 sksamuel