human
What is a the Python code you requested given the following:
Complete the below
@pytest.fixture()
def schema_match(manager):

    ''''This fixture enables verifying JSON Schema. Return a list of validation error dicts. List is empty if no errors
    occurred.'
    '''
assistant
#Here is the Python code you requested.
    def match(schema, response):
        validator = jsonschema.Draft4Validator(schema)
        errors = list(validator.iter_errors(response))
        return [dict(value=list(e.path), message=e.message) for e in errors]
    return match