A purely-functional library for defining type-safe schemas for algebraic data types, providing free generators, SQL queries, JSON codecs, binary codecs, and migration from this schema definition
In src/main/scala/schemas.scala there is a unimplemented ScalaSchema object.
We need to give it a proper implementation of type Prim[A], ie the "set" of primitive types in the Scala world. That would be a subset of the kind * types in the standard library: Int, Boolean, String, etc.
I'm not sure there is a convenient way to encode that but this is worth a try.
In
src/main/scala/schemas.scala
there is a unimplementedScalaSchema
object.We need to give it a proper implementation of
type Prim[A]
, ie the "set" of primitive types in the Scala world. That would be a subset of the kind*
types in the standard library:Int
,Boolean
,String
, etc.I'm not sure there is a convenient way to encode that but this is worth a try.