def validate_with_schema(self, collection=None, context=None):
if self._schema is None or not collection:<EOL><INDENT>return<EOL><DEDENT>result = []<EOL>try:<EOL><INDENT>for index, item in enumerate(collection):<EOL><INDENT>item_result = self._schema.validate(<EOL>model=item,<EOL>context=context if self.use_context else None<EOL>)<EOL>result.append(item_result)<EOL><DEDENT><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>return result<EOL>
Validate each item in collection with our schema