optional validation of scrooge/thrift Document

https://github.com/CommBank/styleguide#imports