Pass document to validators created with `buildValidator`