Hi
I hate to cover my JSON controllers with Type Check System but I have to do it because of security reasons.
So, I tried to trick my brain and make this process enjoyable.
I would like to share the solution with you (https://github.com/askucher/ftjs). if you have same problem and it helps you that my hence my karmic task of helping people will has a little progress.There are other projects like joi already available (https://github.com/hapijs/joi) but ftjs has own Ocaml/F# like DSL and who likes Discriminated Unions, Syntax Sugar will understand me.