Generate JS validation code
wires opened this issue · comments
Jelle Herold commented
WIP
leverage
https://github.com/hapijs/joi
something like this
const x = {a:123, b: "x"}
const T = new Typedefs(`
type Foo =
a : Int * b : String
`)
xT = T.foo.validate(x)