Fix validate_config on nested objects (#9054)

This commit is contained in:
Richard van der Hoff 2021-01-08 14:23:04 +00:00 committed by GitHub
parent fa5f5cbc74
commit d32870ffa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 1 deletions

View file

@ -56,7 +56,7 @@ def json_error_to_config_error(
"""
# copy `config_path` before modifying it.
path = list(config_path)
for p in list(e.path):
for p in list(e.absolute_path):
if isinstance(p, int):
path.append("<item %i>" % p)
else: