https://runkit.com/daedalus28/basic-mongo-json-schema-validation
The checks are domain-specific. The validateTree function could be a good futil helper, although its API needs to be discussed. Do we return a flattened tree? Do we give the option to bail on first error? Etc...