optional validation of scrooge/thrift Document