Skip to content

Commit bee8d27

Browse files
committed
Fix Error.absolute_path logic
1 parent 9f18270 commit bee8d27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonschema/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def absolute_path(self):
8686
return self.relative_path
8787

8888
path = deque(self.relative_path)
89-
path.extendleft(parent.absolute_path)
89+
path.extendleft(reversed(parent.absolute_path))
9090
return path
9191

9292
@property
@@ -96,7 +96,7 @@ def absolute_schema_path(self):
9696
return self.relative_schema_path
9797

9898
path = deque(self.relative_schema_path)
99-
path.extendleft(parent.absolute_schema_path)
99+
path.extendleft(reversed(parent.absolute_schema_path))
100100
return path
101101

102102
def _set(self, **kwargs):

0 commit comments

Comments
 (0)