Validate input objects passed to documents