diff --git a/LCS/PyCommon/json_utils.py b/LCS/PyCommon/json_utils.py index 58e1e71a0f4a4879fd6b0b93c2418b1f74342743..05c496c57ceb948173f3d0e998c1e78bb63c7282 100644 --- a/LCS/PyCommon/json_utils.py +++ b/LCS/PyCommon/json_utils.py @@ -163,11 +163,15 @@ def resolve_path(schema, reference: str): parts = reference.strip('/').split('/') subschema = schema + if parts == ['']: + # reference to root + return schema + try: for part in parts: subschema = subschema[part] except KeyError as e: - raise KeyError("Could not resolve path %s in schema %s" % (path, schema)) from e + raise KeyError("Could not resolve path %s in schema %s" % (reference, schema)) from e return subschema