optional validation of scrooge/thrift Document

Please line up the `=>` for readabilty.