Validate document with its mapping.