From e4065479020da720dd9be7df4156948dc95c1412 Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Wed, 31 Aug 2022 13:32:05 -0700 Subject: [PATCH] this fixes the baseuri to be proper --- src/pyhf/schema/validator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyhf/schema/validator.py b/src/pyhf/schema/validator.py index 7edb094288..1f42b46b8e 100644 --- a/src/pyhf/schema/validator.py +++ b/src/pyhf/schema/validator.py @@ -27,8 +27,8 @@ def validate(spec: Mapping, schema_name: str, version: Union[str, None] = None): # note: trailing slash needed for RefResolver to resolve correctly resolver = jsonschema.RefResolver( - base_uri=f"file://{variables.schemas}/", - referrer=f"{version}/{schema_name}", + base_uri=f"file://{variables.schemas}/{version}/", + referrer=f"{schema_name}", store=variables.SCHEMA_CACHE, ) validator = jsonschema.Draft6Validator(