diff --git a/fmf/utils.py b/fmf/utils.py index ec5f9d3..e818d34 100644 --- a/fmf/utils.py +++ b/fmf/utils.py @@ -936,8 +936,7 @@ def validate_data(data, schema, schema_store=None): """ schema_store = schema_store or {} try: - registry = Registry().with_resource(schema_store, DRAFT4.create_resource() - ) + registry = Registry().with_resource(schema_store, DRAFT4.create_resource(schema)) except AttributeError as error: raise JsonSchemaError(f'Provided schema cannot be loaded: {error}')