spartanz / schemaz

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
https://spartanz.github.io/schemaz
Apache License 2.0
164 stars 18 forks source link

Implement JsonSchema #5

Closed vil1 closed 6 years ago

vil1 commented 6 years ago

In src/main/scala/schemas.scala there is a unimplemented JsonSchema object.

We need to give it a proper implementation of type Prim[A], ie the "set" of primitive types in JSON.

I think we just need to create an ADT with string, number, boolean and null for that to work

insdami commented 6 years ago

Happy to start working on this