How can I generate JSON Schema in ZIO?

16 Views Asked by At

I know there's a zio.schema library, so I can do this:

  val schema: Schema[Record] = DeriveSchema.gen
  println(schema)

And this does print a class having a complex-looking class structure, but what I need is JSON output conforming to the JSON schema standard (draft 4 or later). Is this doable with this library?

0

There are 0 best solutions below